svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
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_set‐
up(9F), ddi_dma_sync(9F)
Oracle Solaris 11.4 08 Nov 2016 dmao_get_size(9F)