1. NAME▲

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

2. SYNOPSIS ▲

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

3. ARGUMENTS ▲

subsys
    virtual subsystem

groups
    default attributes for the root device

4. DESCRIPTION ▲

All AqvirtualAq subsystems have a /sys/devices/system/<name> root device with the name of the subystem. The root device can carry subsystem-wide attributes. All registered devices are below this single root device. ThereAqs no restriction on device naming. This is for kernel software constructs which need sysfs interface.

5. COPYRIGHT ▲