The I2C_M_RECV_LEN flag indicates that the length of an I2C response is in the first byte read. So the maximum size of the read buffer using this option is 256 bytes. Currently the i2c-dev driver returns EINVAL when an attempt is made to use ioctl(I2C_RDWR) with the I2C_M_RECV_LEN flag set. That is overly paranoid: ChangeLog: - allow I2C_M_RECV_LEN flag in the i2c-dev driver as long as the associated buffer length can cope with the worst case size (which is 256 bytes). Doug Gilbert [Please cc responses to me]