> struct i2c_rdwr_ioctl_data data; > data.nmsgs = count; > data.msgs = msgs; > > return ioctl(adapter->fd, I2C_RDWR, &data); > > So we will end up recreating the exact situation as when > virtio_i2c_xfer() is called. Perfect! I was hoping exactly for this. But with my limited experience of all the blocks involved, I decided to ask for this instead of digging into various sources. Looks good.