| 
 
 
 
 
 ioPosOffset
The Device Manager chapter of Inside Macintosh: Devices (and, for that matter, 
Inside Macintosh Volume II  page 185) says that ioPosOffsetis passed to and returned by_Readand_Writecalls for devices. It also says that "After the transfer is completed, theioPosOffsetfield indicates the current 
position of the block device." Actually,ioPosOffsetis not changed by_Readand_Writecalls to device drivers. On the other hand, if the _Reador_Writecall is made to a file (ioRefNumis a file reference number),ioPosOffsetis updated to the reflect the mark for that file reference number after the call. This is correctly documented in 
Inside Macintosh: Files (and Inside Macintosh Volume II 
page 110, and Inside Macintosh Volume IV  page 140). Note also that device drivers should only look at the dCtlPositionfield of the DCE, 
and should not look directly at theioPosOffsetfield of the parameter block. The Device Manager
sets updCtlPositionfor the driver, taking into account both theioPosModeand 
theioPosOffset. Back to top 
 Downloadables
            
               | 
 | Acrobat version of this Note (48K) | Download |  
 Back to top |