I am new to linux device drivers. I see that the fops structures defines write as ::
static ssize_t device_write(struct file *, const char *, size_t, loff_t *);
whereas the write function in the userspace program uses 3 parameters?
ssize_t write(int fd, const void *buf, size_t nbytes);
What happens to the offset parameter loff_t
?