*参照元 [#g1191e7d] #backlinks *説明 [#f96490ff] -パス: [[linux-4.4.1/drivers/base/platform.c]] -FIXME: これは何? --説明 **引数 [#l19228d9] -struct platform_device *pdev -- --[[linux-4.4.1/platform_device]] **返り値 [#zb778d49] - -- **参考 [#rccee238] *実装 [#g392e7ea] /** * platform_device_del - remove a platform-level device * @pdev: platform device we're removing * * Note that this function will also release all memory- and port-based * resources owned by the device (@dev->resource). This function must * _only_ be externally called in error cases. All other usage is a bug. */ void platform_device_del(struct platform_device *pdev) { int i; if (pdev) { device_del(&pdev->dev); - --[[linux-4.4.1/device_del()]] if (pdev->id_auto) { ida_simple_remove(&platform_devid_ida, pdev->id); pdev->id = PLATFORM_DEVID_AUTO; } - --[[linux-4.4.1/ida_simple_remove()]] for (i = 0; i < pdev->num_resources; i++) { struct resource *r = &pdev->resource[i]; if (r->parent) release_resource(r); } - --[[linux-4.4.1/resource]] --[[linux-4.4.1/release_resource()]] } } EXPORT_SYMBOL_GPL(platform_device_del); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#z55ec6ec]