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

  man pages->Tru64 Unix man pages -> getnewbuf (9r)              



NAME    [Toc]    [Back]

       getnewbuf - General: Allocates a buf structure

SYNOPSIS    [Toc]    [Back]

       struct buf * getnewbuf(
               void );

ARGUMENTS    [Toc]    [Back]


DESCRIPTION    [Toc]    [Back]

       The  getnewbuf  routine allocates a buf structure for performing
 I/O operations. This routine guarantees  that  the
       members of the structure are properly initialized prior to
       initiating the I/O request. Device drivers call this  routine
 prior to calling

       physio, which performs the I/O operation.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, getnewbuf returns a pointer to
       the allocated buf structure.  On  failure,  it  returns  a
       NULL pointer.

[ Back ]
 Similar pages
Name OS Title
dmMPEG1AudioFilterStateCreate IRIX allocates new or frees DMMPEG1audiofilterstate structure.
newpup IRIX allocates and initializes a structure for a new menu
rmget Tru64 General: Allocates size units from the given resource map
contig_malloc Tru64 General: Allocates physically contiguous memory
rmalloc Tru64 General: Allocates size units from the given resource map
MALLOC Tru64 General: Allocates a variable-size section of kernel virtual memory
brelse Tru64 General: Deallocates a buf structure
simple_lock_init Tru64 General: Initializes a simple lock structure
decl_simple_lock_data Tru64 General: Declares a simple lock structure
current_task Tru64 General: Returns a pointer to the task structure associated with the currently running kernel thread
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service