Thread (19 messages) 19 messages, 4 authors, 2019-05-13

Re: [PATCH 1/3] block: sed-opal: add ioctl for done-mark of shadow mbr

From: David Kozub <hidden>
Date: 2019-05-01 10:37:10
Also in: lkml

On Wed, 1 May 2019, David Kozub wrote:
quoted hunk ↗ jump to hunk
@@ -104,6 +109,12 @@ struct opal_mbr_data {
	__u8 __align[7];
};

+struct opal_mbr_done {
+	struct opal_key key;
+	__u8 done_flag;
+	__u8 __align[7];
+};
While I just copied opal_mbr_data here, I wonder what is the point of 
__align in these structs. By itself it just pads the structure to have a 
size that is a multiple of 8. Is this to make sure that anything that lies 
past the structure is 8-bytes aligned (assuming the start is 8-bytes 
aligned too), perhaps for 32bit userspace with 64bit kernel?

And if it's this, is it needed for these IOCTL structs? (I can see it 
being useful for struct opal_key.)

Best regards,
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help