Re: [PATCH v4 3/3] i3c: add i3cdev module to expose i3c dev in /dev
From: Greg Kroah-Hartman
Date: Mon Sep 07 2026 - 10:52:12 EST
On Sun, Sep 06, 2026 at 08:27:47PM +0000, Sam Agazaryan wrote:
> +/**
> + * struct i3c_ioc_priv_xfer - I3C SDR ioctl private transfer
> + * @data: Holds pointer to userspace buffer with transmit data.
> + * @len: Length of data buffer buffers, in bytes.
> + * @rnw: encodes the transfer direction. true for a read, false for a write
You do not describe the "pad" variable.
And why not call "rnw" "direction"?
> + */
> +struct i3c_ioc_priv_xfer {
> + __u64 data;
> + __u16 len;
> + __u8 rnw;
> + __u8 pad[5];
You do not enforce that pad[5] MUST be set to all 0.
thanks,
greg k-h