*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> simple_lock_init (9r)              
Title
Content
Arch
Section
 

simple_lock_init(9r)

Contents


NAME    [Toc]    [Back]

       simple_lock_init  -  General:  Initializes  a  simple lock
       structure

SYNOPSIS    [Toc]    [Back]

       #include <kern/lock.h>

       void simple_lock_init(
               simple_lock_t slock_ptr );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to a simple lock  structure.  You  can
       declare  this simple lock structure by using the decl_simple_lock_data
 routine.

DESCRIPTION    [Toc]    [Back]

       The simple_lock_init routine initializes the  simple  lock
       structure  that you previously declared with the decl_simple_lock_data
 routine. You need to initialize  the  simple
       lock  structure only once. After you initialize the simple
       lock structure, you can call simple_lock to assert  exclusive
 access on the associated resource.

RETURN VALUES    [Toc]    [Back]

       None

FILES    [Toc]    [Back]

SEE ALSO
       Routines: decl_simple_lock_data(9r), simple_lock(9r), simple_lock_terminate(9r),     simple_lock_try(9r),      simple_unlock(9r)

       Data Structures: slock(9s)



                                             simple_lock_init(9r)
[ Back ]
 Similar pages
Name OS Title
decl_simple_lock_data Tru64 General: Declares a simple lock structure
lock_init Tru64 General: Initializes a complex lock
simple_lock_terminate Tru64 General: Terminates, using a simple lock
simple_lock Tru64 General: Asserts a simple lock
simple_lock_try Tru64 General: Tries to assert a simple lock
simple_unlock Tru64 General: Releases a simple lock
slock Tru64 General: Contains simple lock-specific information
usinitlock IRIX initializes a lock
pthread_rwlock_init Tru64 Initializes a read-write lock object
tis_rwlock_init Tru64 Initializes a read-write lock object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service