1PLATFORM_DEVICE_REGI(9) Device drivers infrastructure PLATFORM_DEVICE_REGI(9)
2
3
4
6 platform_device_register_data -
7
9 struct platform_device *
10 platform_device_register_data(struct device * parent,
11 const char * name,
12 int id,
13 const void * data,
14 size_t size);
15
17 parent
18 parent device for the device we´re adding
19
20 name
21 base name of the device we´re adding
22
23 id
24 instance id
25
26 data
27 platform specific data for this platform device
28
29 size
30 size of platform specific data
31
33 This function creates a simple platform device that requires minimal
34 resource and memory management. Canned release function freeing memory
35 allocated for the device allows drivers using such devices to be
36 unloaded without waiting for the last reference to the device to be
37 dropped.
38
40Kernel Hackers Manual 2.6. June 2019 PLATFORM_DEVICE_REGI(9)