Find the answer to your Linux question: Results 1 to 5 of 5 Hi,
Can anyone explain this to me - or is something wrong with the
code I am looking at ... I am looking at the source of an
application that ...   1. #1     Just Joined!     Join Date
Mar 2009      number of arguments in write call        I am
looking at the source of an application that is making use of an
I2C device driver. In order to perform a 'write' it is calling
the following function with three arguments.      write(fd, buf,
1);     where fd is the file handle to the device, buf is the
data buffer containing the bytes to write and the last argument
is the number of bytes to write.      The driver source code in
the kernel assigns the following function in the i2cdev_fops
structure.     static struct file_operations i2cdev_fops = {
.owner      = THIS_MODULE,         .llseek     = no_llseek,
.read       = i2cdev_read,         .write      = i2cdev_write,
.ioctl      = i2cdev_ioctl,         .open       = i2cdev_open,