futex_proxy_trylock_atomic man page on OpenSuSE

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

FUTEX_PROXY_TRYLOCK_(9)	      Futex API reference      FUTEX_PROXY_TRYLOCK_(9)

NAME
       futex_proxy_trylock_atomic - Attempt an atomic lock for the top waiter

SYNOPSIS
       int futex_proxy_trylock_atomic(u32 __user * pifutex,
				      struct futex_hash_bucket * hb1,
				      struct futex_hash_bucket * hb2,
				      union futex_key * key1,
				      union futex_key * key2,
				      struct futex_pi_state ** ps,
				      int set_waiters);

ARGUMENTS
       pifutex
	   the user address of the to futex

       hb1
	   the from futex hash bucket, must be locked by the caller

       hb2
	   the to futex hash bucket, must be locked by the caller

       key1
	   the from futex key

       key2
	   the to futex key

       ps
	   address to store the pi_state pointer

       set_waiters
	   force setting the FUTEX_WAITERS bit (1) or not (0)

DESCRIPTION
       Try and get the lock on behalf of the top waiter if we can do it
       atomically. Wake the top waiter if we succeed. If the caller specified
       set_waiters, then direct futex_lock_pi_atomic to force setting the
       FUTEX_WAITERS bit. hb1 and hb2 must be held by the caller.

RETURN
       0 - failed to acquire the lock atomically; 1 - acquired the lock; <0 -
       error

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

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