device_initialize man page on OpenSuSE

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

DEVICE_INITIALIZE(9)	 Device drivers infrastructure	  DEVICE_INITIALIZE(9)

NAME
       device_initialize - init device structure.

SYNOPSIS
       void device_initialize(struct device * dev);

ARGUMENTS
       dev
	   device.

DESCRIPTION
       This prepares the device for use by other layers by initializing its
       fields. It is the first half of device_register, if called by that
       function, though it can also be called separately, so one may use dev's
       fields. In particular, get_device/put_device may be used for reference
       counting of dev after calling this function.

       All fields in dev must be initialized by the caller to 0, except for
       those explicitly set to some other value. The simplest approach is to
       use kzalloc to allocate the structure containing dev.

NOTE
       Use put_device to give up your reference instead of freeing dev
       directly once you have called this function.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013		  DEVICE_INITIALIZE(9)
[top]

List of man pages available for OpenSuSE

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