File handles
Posted: Thu Jan 16, 2003 7:31 am
What sort of information would a file handle structure be expected to store?
I know a plain old number will be returned to the application, but what internally would need to be stored?
I have a FS/IO system that will now mount an I/O device (at the moment just using a ram based device) and map pages into a IO cache. Now I have come to create the open/read function calls. Done the open one, including a filename/path parser but I have come to write the open() function but am stumped as to what information I will need to keep track of.
Anybody jog my memory???
Thanks
Daryl.
I know a plain old number will be returned to the application, but what internally would need to be stored?
I have a FS/IO system that will now mount an I/O device (at the moment just using a ram based device) and map pages into a IO cache. Now I have come to create the open/read function calls. Done the open one, including a filename/path parser but I have come to write the open() function but am stumped as to what information I will need to keep track of.
Anybody jog my memory???
Thanks
Daryl.