public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Add MSG_SPLICE_PAGES from Linux 6.5 to bits/socket.h
@ 2023-10-13 22:51 Joseph Myers
  2023-10-13 23:39 ` Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Joseph Myers @ 2023-10-13 22:51 UTC (permalink / raw)
  To: libc-alpha

Linux 6.5 adds a constant MSG_SPLICE_PAGES.  Add this constant to
glibc's bits/socket.h.

Tested for x86_64.

diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index 57b05715be..73f62d02e9 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -247,6 +247,9 @@ enum
 #define MSG_BATCH	MSG_BATCH
     MSG_ZEROCOPY	= 0x4000000, /* Use user data in kernel path.  */
 #define MSG_ZEROCOPY	MSG_ZEROCOPY
+    MSG_SPLICE_PAGES	= 0x8000000, /* Splice the pages from the
+					iterator in sendmsg.  */
+#define MSG_SPLICE_PAGES	MSG_SPLICE_PAGES
     MSG_FASTOPEN	= 0x20000000, /* Send data in TCP SYN.  */
 #define MSG_FASTOPEN	MSG_FASTOPEN
 

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add MSG_SPLICE_PAGES from Linux 6.5 to bits/socket.h
  2023-10-13 22:51 Add MSG_SPLICE_PAGES from Linux 6.5 to bits/socket.h Joseph Myers
@ 2023-10-13 23:39 ` Dmitry V. Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry V. Levin @ 2023-10-13 23:39 UTC (permalink / raw)
  To: libc-alpha

On Fri, Oct 13, 2023 at 10:51:09PM +0000, Joseph Myers wrote:
> Linux 6.5 adds a constant MSG_SPLICE_PAGES.  Add this constant to
> glibc's bits/socket.h.

It's an internal flag that's cleared on entering syscalls.


-- 
ldv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-13 23:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 22:51 Add MSG_SPLICE_PAGES from Linux 6.5 to bits/socket.h Joseph Myers
2023-10-13 23:39 ` Dmitry V. Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).