table of contents
other versions
PLATFORM_DEVICE_REGI(9) | Device drivers infrastructure | PLATFORM_DEVICE_REGI(9) |
NAME¶
platform_device_register_resndata - add a platform-level device with resources and platform-specific data
SYNOPSIS¶
struct platform_device * platform_device_register_resndata(struct device * parent, const char * name, int id, const struct resource * res, unsigned int num, const void * data, size_t size);
ARGUMENTS¶
parent
parent device for the device we're adding
name
base name of the device we're adding
id
instance id
res
set of resources that needs to be allocated for the
device
num
number of resources
data
platform specific data for this platform device
size
size of platform specific data
DESCRIPTION¶
Returns struct platform_device pointer on success, or ERR_PTR on error.
COPYRIGHT¶
January 2017 | Kernel Hackers Manual 4.8. |