1PLATFORM_DEVICE_ALLO(9) Device drivers infrastructure PLATFORM_DEVICE_ALLO(9)
2
3
4
6 platform_device_alloc - create a platform device
7
9 struct platform_device * platform_device_alloc(const char * name,
10 int id);
11
13 name
14 base name of the device we're adding
15
16 id
17 instance id
18
20 Create a platform device object which can have other objects attached
21 to it, and which will have attached objects freed when it is released.
22
24Kernel Hackers Manual 3.10 June 2019 PLATFORM_DEVICE_ALLO(9)