suse man page for __root_device_register

Query: __root_device_register

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

__ROOT_DEVICE_REGIST(9) 				   Device drivers infrastructure				   __ROOT_DEVICE_REGIST(9)

NAME
__root_device_register - allocate and register a root device
SYNOPSIS
struct device * __root_device_register(const char * name, struct module * owner);
ARGUMENTS
name root device name owner owner module of the root device, usually THIS_MODULE
DESCRIPTION
This function allocates a root device and registers it using device_register. In order to free the returned device, use root_device_unregister. Root devices are dummy devices which allow other devices to be grouped under /sys/devices. Use this function to allocate a root device and then use it as the parent of any device which should appear under /sys/devices/{name} The /sys/devices/{name} directory will also contain a 'module' symlink which points to the owner directory in sysfs. Returns struct device pointer on success, or ERR_PTR on error.
NOTE
You probably want to use root_device_register.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 __ROOT_DEVICE_REGIST(9)
Related Man Pages
device_create_with_groups(9) - centos
struct_class(9) - centos
logindevperm(4) - sunos
device_schedule_callback_owner(9) - suse
logindevperm(4) - linux
Similar Topics in the Unix Linux Community
Getting command output to putty window title.
Cut command on RHEL 6.8 compatibility issues
Update kernel Linux without reboot?!
A (ksh) Library For and From UNIX.com
Docker learning Phase-I