aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/include/linux/vm_sockets.h
diff options
context:
space:
mode:
authorChristoph Müllner <christoph.muellner@vrull.eu>2025-08-01 13:55:33 +0200
committerChristoph Müllner <christophm30@gmail.com>2025-08-01 20:40:25 +0200
commit5d061c0ee23b1052d796e4e8e421aa6e16166fed (patch)
tree0ec5b8dceabfae236de0759c048b2a8fefad047f /linux-headers/include/linux/vm_sockets.h
parent686d7e6564509f1b25127df47e2f27a66958d0a0 (diff)
downloadriscv-gnu-toolchain-master.zip
riscv-gnu-toolchain-master.tar.gz
riscv-gnu-toolchain-master.tar.bz2
Update Linux headers from v6.6 to v6.16HEADmaster
This patch imports the Linux kernel headers v6.16. This brings tons of new supported extensions for hwprobe. Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Diffstat (limited to 'linux-headers/include/linux/vm_sockets.h')
-rw-r--r--linux-headers/include/linux/vm_sockets.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/linux-headers/include/linux/vm_sockets.h b/linux-headers/include/linux/vm_sockets.h
index 3692d43..e401160 100644
--- a/linux-headers/include/linux/vm_sockets.h
+++ b/linux-headers/include/linux/vm_sockets.h
@@ -17,6 +17,8 @@
#ifndef _VM_SOCKETS_H
#define _VM_SOCKETS_H
+#include <sys/socket.h> /* for struct sockaddr and sa_family_t */
+
#include <linux/socket.h>
#include <linux/types.h>
@@ -189,4 +191,21 @@ struct sockaddr_vm {
#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
+/* MSG_ZEROCOPY notifications are encoded in the standard error format,
+ * sock_extended_err. See Documentation/networking/msg_zerocopy.rst in
+ * kernel source tree for more details.
+ */
+
+/* 'cmsg_level' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define SOL_VSOCK 287
+
+/* 'cmsg_type' field value of 'struct cmsghdr' for notification parsing
+ * when MSG_ZEROCOPY flag is used on transmissions.
+ */
+
+#define VSOCK_RECVERR 1
+
#endif /* _VM_SOCKETS_H */