Standalone driver question

David E. Johnson dave at sam.cs.olemiss.edu
Sun Jan 27 06:18:59 AEST 1991


Is a standalone driver required to handle requests whose character
count is not a multiple of the block size?  In other words, is the
driver responsible for extracting the character count of bytes out of
a full block to place in the user buffer or should this be done by a
higher level routine?

In the standalone drivers I have seen, they seem to use the character
count in the transfer, however, since the driver must deal with blocks
of a set size it would seem to me that it should be done at a higher
level. The user code calling the drivers normally wants a set amount
of bytes and does not allocate a structure of block size therefore I
assume that it *must* be handled somewhere.

Any information about buffer handling in standalone I/O routines would
be helpful.  Many thanks...


David E. Johnson
Department of Computer Science ** Title:	Systems Programmer
The University of Mississippi  ** Telephone:	(601) 232-7396
336 Weir Hall                  ** Internet:	dave at cs.olemiss.edu
University, MS  38677          **






-- 
David E. Johnson
Department of Computer Science ** Title:	Systems Programmer
The University of Mississippi  ** Telephone:	(601) 232-7396
336 Weir Hall                  ** Internet:	dave at cs.olemiss.edu



More information about the Comp.unix.internals mailing list