User Tools

Site Tools


solaris:dmao_get_size.9f

dmao_get_size


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 unsuccessful 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)


solaris/dmao_get_size.9f.txt · Last modified: 2023/07/19 08:57 by A User Not Logged in