centos man page for device_unregister

Query: device_unregister

OS: centos

Section: 9

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

DEVICE_UNREGISTER(9)					   Device drivers infrastructure				      DEVICE_UNREGISTER(9)

NAME
device_unregister - unregister device from system.
SYNOPSIS
void device_unregister(struct device * dev);
ARGUMENTS
dev device going away.
DESCRIPTION
We do this in two parts, like we do device_register. First, we remove it from all the subsystems with device_del, then we decrement the reference count via put_device. If that is the final reference count, the device will be cleaned up via device_release above. Otherwise, the structure will stick around until the final reference to the device is dropped.
COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 DEVICE_UNREGISTER(9)
Related Man Pages
device_create(9) - centos
device_create_with_groups(9) - centos
struct_bus_type(9) - centos
struct_class(9) - centos
device_create(9) - suse
Similar Topics in the Unix Linux Community
Flash disk problem