Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
Michael Ellerman | 3f4994c | 2014-12-02 16:52:06 +1100 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_KCMP_H |
| 3 | #define _UAPI_LINUX_KCMP_H |
Cyrill Gorcunov | d97b46a | 2012-05-31 16:26:44 -0700 | [diff] [blame] | 4 | |
Cyrill Gorcunov | 0791e36 | 2017-07-12 14:34:28 -0700 | [diff] [blame] | 5 | #include <linux/types.h> |
| 6 | |
Cyrill Gorcunov | d97b46a | 2012-05-31 16:26:44 -0700 | [diff] [blame] | 7 | /* Comparison type */ |
| 8 | enum kcmp_type { |
| 9 | KCMP_FILE, |
| 10 | KCMP_VM, |
| 11 | KCMP_FILES, |
| 12 | KCMP_FS, |
| 13 | KCMP_SIGHAND, |
| 14 | KCMP_IO, |
| 15 | KCMP_SYSVSEM, |
Cyrill Gorcunov | 0791e36 | 2017-07-12 14:34:28 -0700 | [diff] [blame] | 16 | KCMP_EPOLL_TFD, |
Cyrill Gorcunov | d97b46a | 2012-05-31 16:26:44 -0700 | [diff] [blame] | 17 | |
| 18 | KCMP_TYPES, |
| 19 | }; |
| 20 | |
Cyrill Gorcunov | 0791e36 | 2017-07-12 14:34:28 -0700 | [diff] [blame] | 21 | /* Slot for KCMP_EPOLL_TFD */ |
| 22 | struct kcmp_epoll_slot { |
| 23 | __u32 efd; /* epoll file descriptor */ |
| 24 | __u32 tfd; /* target file number */ |
| 25 | __u32 toff; /* target offset within same numbered sequence */ |
| 26 | }; |
| 27 | |
Michael Ellerman | 3f4994c | 2014-12-02 16:52:06 +1100 | [diff] [blame] | 28 | #endif /* _UAPI_LINUX_KCMP_H */ |