Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversddi_dma_get_attr(9F)


NAME

 ddi_dma_get_attr - get the device DMA attribute structure from a DMA handle

SYNOPSIS

 
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dma_get_attr(ddi_dma_handle_t handle, ddi_dma_attr_t *attrp);

INTERFACE LEVEL

 

Solaris DDI specific (Solaris DDI)

PARAMETERS

 

handle
The handle filled in by a call to ddi_dma_alloc_handle(9F).
attrp
Pointer to a buffer suitable for holding a DMA attribute structure. See ddi_dma_attr(9S).

DESCRIPTION

 

ddi_dma_get_attr() is used to get a ddi_dma_attr(9S) structure. This structure describes the attributes of the DMA data path to which any memory object bound to the given handle will be subject.

RETURN VALUES

 

DDI_SUCCESS
Successfully passed back attribute structure in buffer pointed to by attrp.
DDI_DMA_BADATTR
A valid attribute structure could not be passed back.

CONTEXT

 

ddi_dma_get_attr() can be called from any context.

SEE ALSO

 

ddi_dma_alloc_handle(9F), ddi_dma_attr(9S)


SunOS 5.9Go To TopLast Changed 29 August 2000

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.