Commit 30df2e1
committed
ioctl: Rearrange members in nvme_ns_attach_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_ns_attach_args {
int args_size; /* 0 4 */
int fd; /* 4 4 */
__u32 * result; /* 8 8 */
__u32 timeout; /* 16 4 */
__u32 nsid; /* 20 4 */
struct nvme_ctrl_list * ctrlist; /* 24 8 */
enum nvme_ns_attach_sel sel; /* 32 4 */
/* size: 40, cachelines: 1, members: 7 */
/* padding: 4 */
/* last cacheline: 40 bytes */
} __attribute__((__aligned__(8)));
While at it also introduce the result member.
Signed-off-by: Daniel Wagner <[email protected]>1 parent fe068c6 commit 30df2e1
2 files changed
Lines changed: 14 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
1206 | | - | |
| 1206 | + | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | 1209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2781 | 2781 | | |
2782 | 2782 | | |
2783 | 2783 | | |
| 2784 | + | |
| 2785 | + | |
2784 | 2786 | | |
2785 | | - | |
2786 | 2787 | | |
2787 | | - | |
| 2788 | + | |
2788 | 2789 | | |
2789 | 2790 | | |
2790 | 2791 | | |
2791 | 2792 | | |
| 2793 | + | |
| 2794 | + | |
2792 | 2795 | | |
2793 | | - | |
2794 | 2796 | | |
2795 | | - | |
2796 | | - | |
| 2797 | + | |
| 2798 | + | |
2797 | 2799 | | |
2798 | 2800 | | |
2799 | 2801 | | |
| |||
2813 | 2815 | | |
2814 | 2816 | | |
2815 | 2817 | | |
| 2818 | + | |
| 2819 | + | |
2816 | 2820 | | |
2817 | | - | |
2818 | 2821 | | |
2819 | | - | |
| 2822 | + | |
2820 | 2823 | | |
2821 | 2824 | | |
2822 | 2825 | | |
| |||
2834 | 2837 | | |
2835 | 2838 | | |
2836 | 2839 | | |
| 2840 | + | |
| 2841 | + | |
2837 | 2842 | | |
2838 | | - | |
2839 | 2843 | | |
2840 | | - | |
| 2844 | + | |
2841 | 2845 | | |
2842 | 2846 | | |
2843 | 2847 | | |
| |||
0 commit comments