flush_scheduled_work man page on OpenSuSE

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

FLUSH_SCHEDULED_WORK(9)		 Driver Basics	       FLUSH_SCHEDULED_WORK(9)

NAME
       flush_scheduled_work - ensure that any scheduled work has run to
       completion.

SYNOPSIS
       void flush_scheduled_work(void);

ARGUMENTS
       void
	   no arguments

DESCRIPTION
       Forces execution of the kernel-global workqueue and blocks until its
       completion.

       Think twice before calling this function! It's very easy to get into
       trouble if you don't take great care. Either of the following
       situations

WILL LEAD TO DEADLOCK
       One of the work items currently on the workqueue needs to acquire a
       lock held by your code or its caller.

       Your code is running in the context of a work routine.

       They will be detected by lockdep when they occur, but the first might
       not occur very often. It depends on what work items are on the
       workqueue and what locks they need, which you have no control over.

       In most situations flushing the entire workqueue is overkill; you
       merely need to know that a particular work item isn't queued and isn't
       running. In such cases you should use cancel_delayed_work_sync or
       cancel_work_sync instead.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013	       FLUSH_SCHEDULED_WORK(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