linux-4.4.1/platform_device_del()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#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-...
* resources owned by the device (@dev->resource). This...
* _only_ be externally called in error cases. All othe...
*/
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_devi...
pdev->id = PLATFORM_DEVID_AUTO;
}
-
--[[linux-4.4.1/ida_simple_remove()]]
for (i = 0; i < pdev->num_resources; i++...
struct resource *r = &pdev->reso...
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]
終了行:
*参照元 [#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-...
* resources owned by the device (@dev->resource). This...
* _only_ be externally called in error cases. All othe...
*/
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_devi...
pdev->id = PLATFORM_DEVID_AUTO;
}
-
--[[linux-4.4.1/ida_simple_remove()]]
for (i = 0; i < pdev->num_resources; i++...
struct resource *r = &pdev->reso...
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]
ページ名: