1PLATFORM_DEVICE_REGI(9)  Device drivers infrastructure PLATFORM_DEVICE_REGI(9)
2
3
4

NAME

6       platform_device_register_simple -
7

SYNOPSIS

9       struct platform_device *
10                                                                platform_device_register_simple(const char * name,
11                                                                int id,
12                                                                struct resource * res,
13                                                                unsigned int num);
14

ARGUMENTS

16       name
17           base name of the device we´re adding
18
19       id
20           instance id
21
22       res
23           set of resources that needs to be allocated for the device
24
25       num
26           number of resources
27

DESCRIPTION

29       This function creates a simple platform device that requires minimal
30       resource and memory management. Canned release function freeing memory
31       allocated for the device allows drivers using such devices to be
32       unloaded without waiting for the last reference to the device to be
33       dropped.
34
35       This interface is primarily intended for use with legacy drivers which
36       probe hardware directly. Because such drivers create sysfs device nodes
37       themselves, rather than letting system infrastructure handle such
38       device enumeration tasks, they don´t fully conform to the Linux driver
39       model. In particular, when such drivers are built as modules, they
40       can´t be “hotplugged”.
41
43Kernel Hackers Manual 2.6.         June 2019           PLATFORM_DEVICE_REGI(9)
Impressum