sysfs_schedule_callback man page on Scientific

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

SYSFS_SCHEDULE_CALLB(9) The Filesystem for Exporting K SYSFS_SCHEDULE_CALLB(9)

NAME
       sysfs_schedule_callback - helper to schedule a callback for a kobject

SYNOPSIS
       int sysfs_schedule_callback(struct kobject * kobj,
				   void (*func) (void *), void * data,
				   struct module * owner);

ARGUMENTS
       kobj
	   object we´re acting for.

       func
	   callback function to invoke later.

       data
	   argument to pass to func.

       owner
	   module owning the callback code

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

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

       Returns 0 if the request was submitted, -ENOMEM if storage could not be
       allocated, -ENODEV if a reference to owner isn´t available, -EAGAIN if
       a callback has already been scheduled for kobj.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013	       SYSFS_SCHEDULE_CALLB(9)
[top]

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