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