Query: device_register
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DEVICE_REGISTER(9) Device drivers infrastructure DEVICE_REGISTER(9)NAMEdevice_register - register a device with the system.SYNOPSISint device_register(struct device * dev);ARGUMENTSdev pointer to the device structureDESCRIPTIONThis happens in two clean steps - initialize the device and add it to the system. The two steps can be called separately, but this is the easiest and most common. I.e. you should only call the two helpers separately if have a clearly defined need to use and refcount the device before it is added to the hierarchy. For more information, see the kerneldoc for device_initialize and device_add.NOTE_Never_ directly free dev after calling this function, even if it returned an error! Always use put_device to give up the reference initialized in this function instead.COPYRIGHTKernel Hackers Manual 3.10 June 2014 DEVICE_REGISTER(9)
Related Man Pages |
---|
device_create_vargs(9) - centos |
device_rename(9) - centos |
struct_bus_type(9) - centos |
device_create(9) - suse |
ptm(4) - netbsd |
Similar Topics in the Unix Linux Community |
---|
how to read and write device registers |