Query: device_add
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DEVICE_ADD(9) Device drivers infrastructure DEVICE_ADD(9)NAMEdevice_add - add device to device hierarchy.SYNOPSISint device_add(struct device * dev);ARGUMENTSdev device.DESCRIPTIONThis is part 2 of device_register, though may be called separately _iff_ device_initialize has been called separately. This adds dev to the kobject hierarchy via kobject_add, adds it to the global and sibling lists for the device, then adds it to the other relevant subsystems of the driver model. Do not call this routine or device_register more than once for any device structure. The driver model core is not designed to work with devices that get unregistered and then spring back to life. (Among other things, it's very hard to guarantee that all references to the previous incarnation of dev have been dropped.) Allocate and register a fresh new struct device instead.NOTE_Never_ directly free dev after calling this function, even if it returned an error! Always use put_device to give up your reference instead.COPYRIGHTKernel Hackers Manual 3.10 June 2014 DEVICE_ADD(9)
Related Man Pages |
---|
pty(4) - debian |
device_create(9) - centos |
device_create_with_groups(9) - centos |
device_create(9) - suse |
device_schedule_callback_owner(9) - suse |
Similar Topics in the Unix Linux Community |
---|
IP Range Assigning |
CUDA GPU terminates process at random instances |
How disabling GPU? |
Linux froze and got back working 5 days later, no reboot. |
Creating multipath device with FC Disks |