dmao_get_size(9f) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

dmao_get_size(9f)

dmao_get_size(9F)              Kernel Functions              dmao_get_size(9F)

NAME
       dmao_get_size, dmao_set_size - get and set the size of a DMA object

SYNOPSIS
       # include <sys/ddidmareq.h>

       size_t dmao_get_size(const ddi_dma_obj_t *dp);

       void dmao_set_size(ddi_dma_obj_t *dp, size_t size);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       dmao_get_size


                        dp    Pointer  to  the ddi_dma_obj_t of the DMA object
                              whose size is to be returned.




       dmao_set_size


                        dp    Pointer to the ddi_dma_obj_t of the  DMA  object
                              whose size is to be set.




       size             Value of size in bytes.



DESCRIPTION
       The  dmao_get_size() function supports getting the size of a DMA object
       from the ddi_dma_req structure.


       The dmao_set_size() supports setting the size of a DMA  object  in  the
       ddi_dma_req structure.

RETURN VALUES
       The  dmao_get_size()  function  returns  the  size of the DMA object in
       bytes.

WARNINGS
       Drivers looking to map DMA objects larger than 4GB in size must use the
       dmao_get_size() and dmao_set_size()  interfaces.  Using  the  dmao_size
       field  of  the  dmar_object structure directly will result in an unsuc‐
       cessful mapping.


       Mixed operations  are  not  supported,  that  is,  getting  by  reading
       dmao_size  directly  and  setting  by  using  dmao_set_size(), and vice
       versa.

SEE ALSO
       ddi_dma_req(9S),     ddi_dma_addr_setup(9F),     ddi_dma_buf_setup(9F),
       ddi_dma_curwin(9F),        ddi_dma_free(9F),        ddi_dma_movwin(9F),
       ddi_dma_setup(9F), ddi_dma_sync(9F)

Oracle Solaris 11.4               08 Nov 2016                dmao_get_size(9F)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3