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

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

BUF_UNLOCK(9r)

Contents


NAME    [Toc]    [Back]

       BUF_UNLOCK - General: Unlocks the specified I/O buffer

SYNOPSIS    [Toc]    [Back]

       void BUF_UNLOCK(
               struct buf *bp );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to a buf structure.

DESCRIPTION    [Toc]    [Back]

       The  BUF_UNLOCK  routine  unlocks the specified I/O buffer
       that was locked in a previous call to BUF_LOCK.  The  routine
  masks  all  disk  and tape controller interrupts (by
       calling the splbio routine). It resets the  mutual  exclusion
  buffer  lock  member,  b_lock,  of the specified buf
       structure pointer.

       The BUF_UNLOCK routine then resets the b_flags  member  of
       the  specified buf structure pointer to indicate that this
       buffer is not being used. Finally, BUF_UNLOCK  resets  the
       CPU priority level (by calling the splx routine).

NOTES    [Toc]    [Back]

       You  must  have locked the specified I/O buffer by calling
       BUF_LOCK prior to calling the BUF_UNLOCK routine.

RETURN VALUES    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Routines: BUF_LOCK(9r)



                                                   BUF_UNLOCK(9r)
[ Back ]
 Similar pages
Name OS Title
BUF_UNLOCK FreeBSD unlocks a locked buffer
BUF_LOCKINIT FreeBSD unlocks a locked buffer
BUF_LOCK Tru64 General: Locks the specified I/O buffer
get_random_bytes_wait Tru64 General: Returns the requested number of random bytes and places them in a buffer.
get_random_bytes Tru64 General: Returns the requested number of random bytes and stores them in a buffer.
pthread_mutex_unlock Tru64 Unlocks the specified mutex
tis_mutex_unlock Tru64 Unlocks the specified mutex
sem_post Tru64 Unlocks a semaphore (P1003.1b)
tis_unlock_global Tru64 Unlocks the DECthreads global mutex
pthread_unlock_global_np Tru64 Unlocks the DECthreads global mutex
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service