History

nvme: change nvme_passthru_cmd64 to explicitly mark rsvd

Changing nvme_passthru_cmd64 to add a field: rsvd2. This field is an explicit marker for the padding space added on certain platforms as a result of the enlargement of the result field from 32 bit to 64 bits in size, and fixes differences in struct size when using compat ioctl for 32-bit binaries on 64-bit architecture.

Charles Machalow committed 7 years ago

Commit 0d6eeb11 parent 763303a1 file · +1 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/nvme_ioctl.h+1−0
@@ -63,6 +63,7 @@ struct nvme_passthru_cmd64 { · 62 unmodified lines
6363 __u32 cdw14;
6464 __u32 cdw15;
6565 __u32 timeout_ms;
66+ __u32 rsvd2;
6667 __u64 result;
6768 };
6869