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

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

BUF_TIMELOCK(9)

Contents


NAME    [Toc]    [Back]

     BUF_TIMELOCK -- 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_TIMELOCK(struct buf *bp, int locktype, char *wmesg, int catch,
	 int timo);

DESCRIPTION    [Toc]    [Back]

     The BUF_TIMELOCK() function locks the given buffer, and limits the amount
     of time it will sleep to timo and OR's catch into the sleep's priority.
     wmesg is the wmesg used in the sleep.

     Its arguments are:

     bp        The buffer to lock.

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

     wmesg     The wmesg used in any sleeps while acquiring the lock.

     catch     Priority OR'd into the sleep's priority.

     timo      The timeout for any sleeps encountered during the lock.

RETURN VALUES    [Toc]    [Back]

     A value of 0 is returned on success.  See lockmgr(9) for details on nonzero
 return values.

SEE ALSO    [Toc]    [Back]

      
      
     buf(9), BUF_LOCK(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