table of contents
other versions
- wheezy 3.2.78-1
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 dataSYNOPSIS¶
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¶
parentparent 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¶
March 2016 | Kernel Hackers Manual 3.2. |