]>
www.infradead.org Git - users/sagi/libnvme.git/commit
ioctl: Rearrange members in nvme_get_lba_status_args
Avoid any holes in the struct by rearranging the members. Also add the
attribute packed to struct definition to reduce ABI breakage.
struct nvme_get_lba_status_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
__u32 mndw; /* 24 4 */
enum nvme_lba_status_atype atype; /* 28 4 */
__u64 slba; /* 32 8 */
struct nvme_lba_status * lbas; /* 40 8 */
__u16 rl; /* 48 2 */
/* size: 50, cachelines: 1, members: 10 */
/* last cacheline: 50 bytes */
} __attribute__((__packed__));
Signed-off-by: Daniel Wagner <dwagner@suse.de>