Page 1 of 1
Video driver
Posted: Tue May 18, 2004 11:00 pm
by pepito
Sorry, more about the 'device manager'...
The translation from 'sector-number' to 'head-cylinder-sector' must be calculated into the 'disk driver', or it must be calculated for the 'file system module'?
What is the meaning of 'device-independent-software'?
pepito
RE:Video driver
Posted: Tue May 18, 2004 11:00 pm
by TheUbu
pepito,
Slow down for a minute there as many layers involved with say reading from a disk driver. Let me create a simple example and we will follow it in steps.
First lets fopen("/COPYRIGHT","r"); now that will trigger the VFS layer which in turn will find the mount point. When it finds the MP it will do an fopen via that filesystems module which will in turn access the drive. Now let us think about this the file is at an sector offset onto the drive however the file system will probably give you a real sector offset into the drive so you will most likely be passing an LBA address or sector offset into the driver. The driver then should either do your CHS conversion or just use the LBA which most new drives can accept.
-Christopher