aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Myers <josmyers@redhat.com>2024-12-20 11:45:45 +0000
committerJoseph Myers <josmyers@redhat.com>2024-12-20 11:46:06 +0000
commitfbdd8b3fa8077ad5377de5e65f7f21957193e6b8 (patch)
tree58b6b466303003b70b5985e4f707e05dd16f4c72
parent9a6533429e79c862a42e3be73c86272d36d0ac5d (diff)
downloadglibc-fbdd8b3fa8077ad5377de5e65f7f21957193e6b8.zip
glibc-fbdd8b3fa8077ad5377de5e65f7f21957193e6b8.tar.gz
glibc-fbdd8b3fa8077ad5377de5e65f7f21957193e6b8.tar.bz2
Add MSG_SOCK_DEVMEM from Linux 6.12 to bits/socket.h
Linux 6.12 adds a constant MSG_SOCK_DEVMEM (recall that various constants such as this one are defined in the non-uapi linux/socket.h but still form part of the kernel/userspace interface, so that non-uapi header is one that needs checking each release for new such constants). Add it to glibc's bits/socket.h. Tested for x86_64.
-rw-r--r--sysdeps/unix/sysv/linux/bits/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index 5ab19a8..ca27a3c 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -246,6 +246,8 @@ enum
#define MSG_WAITFORONE MSG_WAITFORONE
MSG_BATCH = 0x40000, /* sendmmsg: more messages coming. */
#define MSG_BATCH MSG_BATCH
+ MSG_SOCK_DEVMEM = 0x2000000, /* Receive devmem skbs as cmsg. */
+#define MSG_SOCK_DEVMEM MSG_SOCK_DEVMEM
MSG_ZEROCOPY = 0x4000000, /* Use user data in kernel path. */
#define MSG_ZEROCOPY MSG_ZEROCOPY
MSG_FASTOPEN = 0x20000000, /* Send data in TCP SYN. */