device_schedule_callback_owner man page on Scientific

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

DEVICE_SCHEDULE_CALL(9)	 Device drivers infrastructure DEVICE_SCHEDULE_CALL(9)

       device_schedule_callback_owner - helper to schedule a callback for a

       int device_schedule_callback_owner(struct device * dev,
					  void (*func) (struct device *),
					  struct module * owner);


	   callback function to invoke later.

	   module owning the callback routine

       Attribute methods must not unregister themselves or their parent device
       (which would amount to the same thing). Attempts to do so will
       deadlock, since unregistration is mutually exclusive with driver

       Instead methods can call this routine, which will attempt to allocate
       and schedule a workqueue request to call back func with dev as its
       argument in the workqueue´s process context.  dev will be pinned until
       func returns.

       This routine is usually called via the inline device_schedule_callback,
       which automatically sets owner to THIS_MODULE.

       Returns 0 if the request was submitted, -ENOMEM if storage could not be
       allocated, -ENODEV if a reference to owner isn´t available.

       This routine won´t work if CONFIG_SYSFS isn´t set! It uses an
       underlying sysfs routine (since it is intended for use by attribute
       methods), and if sysfs isn´t available you´ll get nothing but -ENOSYS.

Kernel Hackers Manual 2.6.	 November 2013	       DEVICE_SCHEDULE_CALL(9)

List of man pages available for Scientific

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]
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