Writing Device Drivers

Buffered I/O Functions

Table B–31 Buffered I/O Functions

Function Name 

Description 

physio

perform physical I/O 

aphysio 

perform asynchronous physical I/O 

anocancel 

prevent cancellation of asynchronous I/O request  

minphys 

limit physio buffer size 

biowait 

suspend processes pending completion of block I/O 

biodone 

release buffer after buffer I/O transfer and notify blocked threads 

bioerror 

indicate error in buffer header 

geterror 

return I/O error 

bp_mapin 

allocate virtual address space 

bp_mapout 

deallocate virtual address space 

disksort 

single direction elevator seek sort for buffers 

getrbuf 

get a raw buffer header  

freerbuf 

free a raw buffer header 

biosize 

returns size of a buffer structure 

bioinit 

initialize a buffer structure 

biofini 

uninitialize a buffer structure 

bioreset 

reuse a private buffer header after I/O is complete 

bioclone 

clone another buffer 

biomodified 

check if a buffer is modified 

clrbuf 

erase the contents of a buffer