Re: Read/Write operations

From: Ingo Oeser (ingo.oeser@informatik.tu-chemnitz.de)
Date: Tue Jan 11 2000 - 04:15:48 EST


On Mon, 10 Jan 2000, Peix Fabrice wrote:

> In struct file_operations read and write are define as follow
> ssize_t (*read) (struct file *fops, char *buf, size_t count, loff_t
> *ppos);
> ssize_t (*write) (struct file *fops, const char *buf, size_t count,
> loff_t *ppos);
>
> Just a little question, in which case the value of *ppos is different
> of fops->f_pos.

pread()/pwrite() syscalls. And for writing a shared mapping back
to its backing store, if you used "generic_file_mmap" to
implement your mmap() operation.

Regards

Ingo Oeser

-- 
Feel the power of the penguin - run linux@your.pc
<esc>:x

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:17 EST