I have /proc file. I don't understand some argument of read function. Read function look like that :
int procfile_read(char *buffer, char **buffer_location, off_t offset, int buffer_length, int *eof, void *data)
I don't know how use offset argument.
some example use offset argument like that :
if (offset > 0)
return 0;
and they explain : This is important because the standard read function from the library would continue to issuethe read system call until the kernel replies that it has no more information, or until its buffer is filled.
I have a file greater than buffer. how can i read to the end of file???