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

  man pages->FreeBSD man pages -> BUF_LOCK (9)              
Title
Content
Arch
Section
 

BUF_LOCK(9)

Contents


NAME    [Toc]    [Back]

     BUF_LOCK -- locks a buffer

SYNOPSIS    [Toc]    [Back]

     #include <sys/param.h>
     #include <sys/systm.h>
     #include <sys/uio.h>
     #include <sys/bio.h>
     #include <sys/buf.h>

     int
     BUF_LOCK(struct buf *bp, int locktype);

DESCRIPTION    [Toc]    [Back]

     The BUF_LOCK() function locks the given buffer.  If the lock is already
     held this call will block until it can acquire the lock unless LK_NOWAIT
     is set.

     Its arguments are:

     bp        The buffer to lock.

     locktype  Flags controlling the type of lock.  See lockmgr(9) for
	       details.

RETURN VALUES    [Toc]    [Back]

     A value of 0 is returned upon success.  See lockmgr(9) for information on
     non-zero return values.

SEE ALSO    [Toc]    [Back]

      
      
     buf(9), BUF_TIMELOCK(9), BUF_UNLOCK(9), lockmgr(9)

AUTHORS    [Toc]    [Back]

     This man page was written by Chad David <[email protected]>.


FreeBSD 5.2.1			 July 9, 2001			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
BUF_LOCK Tru64 General: Locks the specified I/O buffer
pthread_mutex_lock Tru64 Locks an unlocked mutex
dxpause Tru64 locks (pauses) an X display
pthread_mutex_lock IRIX mutual exclusion locks
omp_lock IRIX Set of procedures to manipulate locks
tis_mutex_lock Tru64 Locks an unlocked mutex
nflocks HP-UX maximum number of file locks
ttyunlock NetBSD locks based on files containing PIDs
pidlock NetBSD locks based on files containing PIDs
pthread_lock_global_np Tru64 Locks the DECthreads global mutex
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service