device_add man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

DEVICE_ADD(9)		 Device drivers infrastructure		 DEVICE_ADD(9)

NAME
       device_add - add device to device hierarchy.

SYNOPSIS
       int device_add(struct device * dev);

ARGUMENTS
       dev
	   device.

DESCRIPTION
       This 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.

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014			 DEVICE_ADD(9)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net