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

NAME

6       subsys_system_register - register a subsystem at /sys/devices/system/
7

SYNOPSIS

9       int subsys_system_register(struct bus_type * subsys,
10                                  const struct attribute_group ** groups);
11

ARGUMENTS

13       subsys
14           system subsystem
15
16       groups
17           default attributes for the root device
18

DESCRIPTION

20       All 'system' subsystems have a /sys/devices/system/<name> root device
21       with the name of the subsystem. The root device can carry subsystem-
22       wide attributes. All registered devices are below this single root
23       device and are named after the subsystem with a simple enumeration
24       number appended. The registered devices are not explicitely named; only
25       'id' in the device needs to be set.
26
27       Do not use this interface for anything new, it exists for compatibility
28       with bad ideas only. New subsystems should use plain subsystems; and
29       add the subsystem-wide attributes should be added to the subsystem
30       directory itself and not some create fake root-device placed in
31       /sys/devices/system/<name>.
32
34Kernel Hackers Manual 3.10         June 2019           SUBSYS_SYSTEM_REGIST(9)
Impressum