eisa_dma_get_buf(D3X)

eisa_dma_get_buf - allocated DMA buffer descriptor

As shipped in IRIX 6.5.22. Last changed in IRIX 6.5.5.

NAME
     eisa_dma_get_buf - allocated DMA buffer descriptor

SYNOPSIS
     #include <sys/types.h>
     #include <sys/eisa.h>

     struct eisa_dma_buf *eisa_dma_get_buf(uchar_t mode);

   Arguments
     mode Specifies whether the caller is willing to sleep waiting for memory.
          If mode is set to EISA_DMA_SLEEP, the caller will sleep if necessary
          until the memory for a dma_buf() is available. If mode is set to
          EISA_DMA_NOSLEEP, the caller will not sleep, but eisa_dma_get_buf
          will return NULL if memory for a dma_buf(D4X) is not immediately
          available.

DESCRIPTION
     eisa_dma_get_buf allocates memory for a DMA buffer descriptor (see
     eisa_dma_buf(), zeros it out, and returns a pointer to the structure.

   Return Values
     eisa_dma_get_buf returns a pointer to the allocated DMA control block. If
     EISA_DMA_NOSLEEP is specified and memory for a eisa_dma_buf() is not
     immediately available, eisa_dma_get_buf returns a NULL pointer.

   Level
     Base only if mode is set to EISA_DMA_SLEEP. Base or Interrupt if mode is
     set to EISA_DMA_NOSLEEP.

   Notes
     Can sleep if mode is set to DMA_SLEEP.