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

NAME

6       subsys_virtual_register - register a subsystem at /sys/devices/virtual/
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

20       All 'virtual' subsystems have a /sys/devices/system/<name> root device
21       with the name of the subystem. The root device can carry subsystem-wide
22       attributes. All registered devices are below this single root device.
23       There's no restriction on device naming. This is for kernel software
24       constructs which need sysfs interface.
25
27Kernel Hackers Manual 3.10         June 2019           SUBSYS_VIRTUAL_REGIS(9)
Impressum