diff options
Diffstat (limited to 'include/linux/socket.h')
| -rw-r--r-- | include/linux/socket.h | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/include/linux/socket.h b/include/linux/socket.h index 13c3a237b9c9..39b74d83c7c4 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -177,6 +177,7 @@ static inline size_t msg_data_left(struct msghdr *msg)  #define	SCM_RIGHTS	0x01		/* rw: access rights (array of int) */  #define SCM_CREDENTIALS 0x02		/* rw: struct ucred		*/  #define SCM_SECURITY	0x03		/* rw: security label		*/ +#define SCM_PIDFD	0x04		/* ro: pidfd (int)		*/  struct ucred {  	__u32	pid; @@ -318,7 +319,6 @@ struct ucred {  #define MSG_MORE	0x8000	/* Sender will send more */  #define MSG_WAITFORONE	0x10000	/* recvmmsg(): block until 1+ packets avail */  #define MSG_SENDPAGE_NOPOLICY 0x10000 /* sendpage() internal : do no apply policy */ -#define MSG_SENDPAGE_NOTLAST 0x20000 /* sendpage() internal : not the last page */  #define MSG_BATCH	0x40000 /* sendmmsg(): more messages coming */  #define MSG_EOF         MSG_FIN  #define MSG_NO_SHARED_FRAGS 0x80000 /* sendpage() internal : page frags are not shared */ @@ -327,6 +327,7 @@ struct ucred {  					  */  #define MSG_ZEROCOPY	0x4000000	/* Use user data in kernel path */ +#define MSG_SPLICE_PAGES 0x8000000	/* Splice the pages from the iterator in sendmsg() */  #define MSG_FASTOPEN	0x20000000	/* Send data in TCP SYN */  #define MSG_CMSG_CLOEXEC 0x40000000	/* Set close_on_exec for file  					   descriptor received through @@ -337,6 +338,9 @@ struct ucred {  #define MSG_CMSG_COMPAT	0		/* We never have 32 bit fixups */  #endif +/* Flags to be cleared on entry by sendmsg and sendmmsg syscalls */ +#define MSG_INTERNAL_SENDMSG_FLAGS \ +	(MSG_SPLICE_PAGES | MSG_SENDPAGE_NOPOLICY | MSG_SENDPAGE_DECRYPTED)  /* Setsockoptions(2) level. Thanks to BSD these must match IPPROTO_xxx */  #define SOL_IP		0 |