Go to main content

Writing Device Drivers for Oracle® Solaris 11.3

Exit Print View

Updated: March 2019
 
 

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 40  Deprecated Virtual Memory Functions
Deprecated Functions
Replacement
hat_getkpfnum()
devmap(), ddi_dma_*_bind_handle(), ddi_dma_nextcookie()