Re: Why is the 'loff_t *offset' parameter in the file_operations'read function a pointer?

From: Amit Ben Shahar
Date: Tue Apr 26 2011 - 08:55:18 EST


> The read function must update the offset independent of the return value.
> See simple_read_from_buffer() as an example.

Thank you - that helped greatly and solved my problem.
Amit.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/