How can I make device driver for llseek.
I've made read/write function for device driver emulator like nvram or flash ram using memory buffer.(call it nvram emul driver)
Total buffer size is 1024 Total read/ total write is ok. But, problem is llseek. I don't know how I can use the specific positon for read/write function using llseek. I think that offset is very important value for llseek. But, I don't know or I don't understand how I can use it. How can I use specific positon for llseek based on my read/write driver. Do I need to fix ? or modify in detail? Code:
#define BUFF_SIZE 1024 |
In read/write function, 'offset' parameter is your current position.
|
All times are GMT -5. The time now is 11:29 PM. |