Thread (10 messages) 10 messages, 4 authors, 2024-01-31

Re: [PATCH net-next v4 3/3] eventpoll: Add epoll ioctl for epoll_params

From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2024-01-31 02:08:36
Also in: linux-doc, linux-fsdevel, lkml, netdev

On Wed, Jan 31, 2024 at 01:47:33AM +0000, Joe Damato wrote:
+struct epoll_params {
+	__aligned_u64 busy_poll_usecs;
+	__u16 busy_poll_budget;
+
+	/* pad the struct to a multiple of 64bits for alignment on all arches */
+	__u8 __pad[6];
You HAVE to check this padding to be sure it is all 0, otherwise it can
never be used in the future for anything.

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help