[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pos != &file->f_pos



Inside some file operations functions (read/write) I saw this:

size_t read(struct file *file, char *buf, size_t count loff_t *pos)
{
	if (pos != &file->f_pos)
		return -ESPIPE;
...

What is this good for?

/FAU


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/