Writing Device Drivers
Previous Next

Virtual Memory Functions

The virtual memory functions are:

ddi_btop()

Convert device bytes to pages (round down)

ddi_btopr()

Convert device bytes to pages (round up)

ddi_ptob()

Convert device pages to bytes

btop()

Convert size in bytes to size in pages (round down)

btopr()

Convert size in bytes to size in pages (round up)

ptob()

Convert size in pages to size in bytes

Table B-11 Deprecated Virtual Memory Functions

Deprecated Functions

Replacement

hat_getkpfnum()

devmap(), ddi_dma_*_bind_handle(), ddi_dma_nextcookie()

Previous Next