mutex_trylock man page on OpenSuSE

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

MUTEX_TRYLOCK(9)	      Mutex API reference	      MUTEX_TRYLOCK(9)

NAME
       mutex_trylock - try to acquire the mutex, without waiting

SYNOPSIS
       int __sched mutex_trylock(struct mutex * lock);

ARGUMENTS
       lock
	   the mutex to be acquired

DESCRIPTION
       Try to acquire the mutex atomically. Returns 1 if the mutex has been
       acquired successfully, and 0 on contention.

NOTE
       this function follows the spin_trylock convention, so it is negated
       from the down_trylock return values! Be careful about this when
       converting semaphore users to mutexes.

       This function must not be used in interrupt context. The mutex must be
       released by the same task that acquired it.

AUTHOR
       Rusty Russell <rusty@rustcorp.com.au>
	   Author.

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