summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/linux/kcmp.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 20:10:31 +0100
commitfc00c656c96528112d05cf0edf8631bd5eaea446 (patch)
treea6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/arch/x86_64/linux/kcmp.h
Add build system scaffolding and libc headers
Diffstat (limited to 'include/arch/x86_64/linux/kcmp.h')
-rw-r--r--include/arch/x86_64/linux/kcmp.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/arch/x86_64/linux/kcmp.h b/include/arch/x86_64/linux/kcmp.h
new file mode 100644
index 00000000..66a82856
--- /dev/null
+++ b/include/arch/x86_64/linux/kcmp.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+#ifndef _LINUX_KCMP_H
+#define _LINUX_KCMP_H
+
+#include <linux/types.h>
+
+/* Comparison type */
+enum kcmp_type {
+ KCMP_FILE,
+ KCMP_VM,
+ KCMP_FILES,
+ KCMP_FS,
+ KCMP_SIGHAND,
+ KCMP_IO,
+ KCMP_SYSVSEM,
+ KCMP_EPOLL_TFD,
+
+ KCMP_TYPES,
+};
+
+/* Slot for KCMP_EPOLL_TFD */
+struct kcmp_epoll_slot {
+ __u32 efd; /* epoll file descriptor */
+ __u32 tfd; /* target file number */
+ __u32 toff; /* target offset within same numbered sequence */
+};
+
+#endif /* _LINUX_KCMP_H */