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

NAME

6       platform_device_register_resndata - add a platform-level device with
7       resources and platform-specific data
8

SYNOPSIS

10       struct platform_device *
11                                                                  platform_device_register_resndata(struct device * parent,
12                                                                  const char * name,
13                                                                  int id,
14                                                                  const struct resource * res,
15                                                                  unsigned int num,
16                                                                  const void * data,
17                                                                  size_t size);
18

ARGUMENTS

20       parent
21           parent device for the device we're adding
22
23       name
24           base name of the device we're adding
25
26       id
27           instance id
28
29       res
30           set of resources that needs to be allocated for the device
31
32       num
33           number of resources
34
35       data
36           platform specific data for this platform device
37
38       size
39           size of platform specific data
40

DESCRIPTION

42       Returns struct platform_device pointer on success, or ERR_PTR on error.
43
45Kernel Hackers Manual 3.10         June 2019           PLATFORM_DEVICE_REGI(9)
Impressum