*参照元 [#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 device_node pointer * @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, this is the index into * the table * * Returns the device_node pointer with refcount incremented. Use * of_node_put() on it when done. */ struct device_node *of_parse_phandle(const struct device_node *np, const char *phandle_name, int index) { 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_name, NULL, 0, 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]