*参照元 [#ve22af5a] #backlinks *説明 [#g09628f3] -パス: [[linux-4.4.1/drivers/base/platform.c]] -FIXME: これは何? --説明 **引数 [#udfeef4c] -struct platform_device *dev -- --[[linux-4.4.1/]] -unsigned int type -- -unsigned int num -- **返り値 [#ie7fbeb9] -struct resource * -- --[[linux-4.4.1/resource]] **参考 [#n34fffa8] *実装 [#s6861b2c] /** * platform_get_resource - get a resource for a device * @dev: platform device * @type: resource type * @num: resource index */ struct resource *platform_get_resource(struct platform_device *dev, unsigned int type, unsigned int num) { int i; for (i = 0; i < dev->num_resources; i++) { struct resource *r = &dev->resource[i]; if (type == resource_type(r) && num-- == 0) return r; - --[[linux-4.4.1/resource_type()]] } return NULL; } EXPORT_SYMBOL_GPL(platform_get_resource); - --[[linux-4.4.1/EXPORT_SYMBOL_GPL()]] *コメント [#mc326de1]