subsys_virtual_register(9)

subsys_virtual_register9

Register a subsystem at /sys/devices/virtual/

Usage

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

Arguments

subsys

virtual subsystem

groups

default attributes for the root device

Overview

All 'virtual' 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. There's no restriction on device naming. This is for kernel software constructs which need sysfs interface.

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.