]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add MSG_SOCK_DEVMEM from Linux 6.12 to bits/socket.h
authorJoseph Myers <josmyers@redhat.com>
Fri, 20 Dec 2024 11:45:45 +0000 (11:45 +0000)
committerJoseph Myers <josmyers@redhat.com>
Fri, 20 Dec 2024 11:46:06 +0000 (11:46 +0000)
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.

sysdeps/unix/sysv/linux/bits/socket.h

index 5ab19a8c08bf10512f2fb144fcc9d79222022d75..ca27a3c5979c7535f33390d3fac3384710e0db9b 100644 (file)
@@ -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.  */