blob: 481e103da78ed42a5a76447e836ee8374541d7c7 [file] [log] [blame]
Michael Ellerman3f4994c2014-12-02 16:52:06 +11001#ifndef _UAPI_LINUX_KCMP_H
2#define _UAPI_LINUX_KCMP_H
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -07003
Cyrill Gorcunov0791e362017-07-12 14:34:28 -07004#include <linux/types.h>
5
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -07006/* Comparison type */
7enum kcmp_type {
8 KCMP_FILE,
9 KCMP_VM,
10 KCMP_FILES,
11 KCMP_FS,
12 KCMP_SIGHAND,
13 KCMP_IO,
14 KCMP_SYSVSEM,
Cyrill Gorcunov0791e362017-07-12 14:34:28 -070015 KCMP_EPOLL_TFD,
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -070016
17 KCMP_TYPES,
18};
19
Cyrill Gorcunov0791e362017-07-12 14:34:28 -070020/* Slot for KCMP_EPOLL_TFD */
21struct 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 Ellerman3f4994c2014-12-02 16:52:06 +110027#endif /* _UAPI_LINUX_KCMP_H */