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

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

lock_terminate(9r)

Contents


NAME    [Toc]    [Back]

       lock_terminate - General: Terminates, using a complex lock

SYNOPSIS    [Toc]    [Back]

       #include <kern/lock.h>

       void lock_terminate(
               lock_t lock_structptr );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to the complex lock  structure,  lock.
       The  lock  structure is an opaque data structure; that is,
       its associated members are referenced and  manipulated  by
       the  operating  system  and not by the user of the complex
       lock mechanism.

DESCRIPTION    [Toc]    [Back]

       The lock_terminate routine determines that the  driver  is
       done using the complex lock forever. The complex lock must
       be free (that is, the  driver  does  not  hold  the  lock)
       before  calling lock_terminate. The kernel module must not
       reference  the  specified  complex  lock   after   calling
       lock_terminate.

NOTES    [Toc]    [Back]

       You  must  call  lock_init  (once  only)  prior to calling
       lock_terminate to initialize the  lock  structure  pointer
       for  the  resource.   A resource, from the kernel module's
       standpoint, is data that more than one kernel  thread  can
       manipulate. You can store the resource in global variables
       and in data structure members.

RETURN VALUES    [Toc]    [Back]

       None

FILES    [Toc]    [Back]

SEE ALSO
       Kernel     routines:     lock_done(9r),     lock_init(9r),
       lock_try_read(9r), lock_try_write(9r), lock_write(9r)

       Data Structures: lock(9s)



                                               lock_terminate(9r)
[ Back ]
 Similar pages
Name OS Title
simple_lock_terminate Tru64 General: Terminates, using a simple lock
lock_try_read Tru64 General: Tries to assert a complex lock
lock_done Tru64 General: Releases a complex lock
lock_init Tru64 General: Initializes a complex lock
lock Tru64 General: Contains complex lock-specific information
lock_read Tru64 General: Asserts a complex lock with read-only access
lock_try_write Tru64 General: Tries to assert a complex lock with write access
simple_lock_try Tru64 General: Tries to assert a simple lock
simple_unlock Tru64 General: Releases a simple lock
simple_lock Tru64 General: Asserts a simple lock
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service