I/O Handling 157 Reading from Mass Storage The flow of data to and from a mass storage device is buffered. For each device there is a Device buffers are dynamically allocated by the operating system and their actual locations at "device buffer" in memory which holds data corresponding to a physical record (256 bytes). any given time are of no concern. To get information from a mass storage device into its device buffer takes the Mm_read start Mm _read _ xfer utility. The transfer of data, therefore, looks something like this - utility.
Then to get the information out of the buffer and into your user space takes the Mm - read - start Mm - read - xfer User Space The utilities accomplish their purposes with the help of two locations containing vital informa- tion for their use. The first is the Mass Storage Descriptor (MSD) and the second is the Mass Storage Transfer Identifier (MSTID). The MSD is three words in the ICOM region which contains the following information - WORD o MSUS 2 don't I upper 7 bits of care record number 15 ... 7 6 0 lower 16 bits of record number This information must be provid\!d by your program. You must determine this information in advance of attempting the reading operation.
The msus is of the form - Unit Device Select 15 14 13 12 11 10 9 8 7 6 5 4 3 2 OBit 1 The device type is the ASCII code for the type minus 1008. Number Address Type 1 Code I I I I I 1 I I I I I I I I I I I I I I I I I I