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