linux-4.4.1/of_parse_phandle()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#i3dfc298]
#backlinks
*説明 [#bf654f93]
-パス: [[linux-4.4.1/drivers/of/base.c]]
-FIXME: これは何?
--説明
**引数 [#ad87ce84]
-const struct device_node *np
--
--[[linux-4.4.1/device_node]]
-const char *phandle_name
--
-int index
--
**返り値 [#ae026562]
-struct device_node *
--
**参考 [#be210e59]
*実装 [#q0e377eb]
/**
* of_parse_phandle - Resolve a phandle property to a de...
* @np: Pointer to device node holding phandle property
* @phandle_name: Name of property holding a phandle value
* @index: For properties holding a table of phandles, t...
* the table
*
* Returns the device_node pointer with refcount increme...
* of_node_put() on it when done.
*/
struct device_node *of_parse_phandle(const struct device...
const char *phandle...
{
struct of_phandle_args args;
-
--[[linux-4.4.1/of_phandle_args]]
if (index < 0)
return NULL;
if (__of_parse_phandle_with_args(np, phandle_nam...
index, &args))
return NULL;
-
--[[linux-4.4.1/__of_parse_phandle_with_args()]]
return args.np;
}
EXPORT_SYMBOL(of_parse_phandle);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#x5e96054]
終了行:
*参照元 [#i3dfc298]
#backlinks
*説明 [#bf654f93]
-パス: [[linux-4.4.1/drivers/of/base.c]]
-FIXME: これは何?
--説明
**引数 [#ad87ce84]
-const struct device_node *np
--
--[[linux-4.4.1/device_node]]
-const char *phandle_name
--
-int index
--
**返り値 [#ae026562]
-struct device_node *
--
**参考 [#be210e59]
*実装 [#q0e377eb]
/**
* of_parse_phandle - Resolve a phandle property to a de...
* @np: Pointer to device node holding phandle property
* @phandle_name: Name of property holding a phandle value
* @index: For properties holding a table of phandles, t...
* the table
*
* Returns the device_node pointer with refcount increme...
* of_node_put() on it when done.
*/
struct device_node *of_parse_phandle(const struct device...
const char *phandle...
{
struct of_phandle_args args;
-
--[[linux-4.4.1/of_phandle_args]]
if (index < 0)
return NULL;
if (__of_parse_phandle_with_args(np, phandle_nam...
index, &args))
return NULL;
-
--[[linux-4.4.1/__of_parse_phandle_with_args()]]
return args.np;
}
EXPORT_SYMBOL(of_parse_phandle);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#x5e96054]
ページ名: