xref: /linux/include/uapi/linux/kcmp.h (revision 0791e3644e5ef21646fe565b9061788d05ec71d4)
13f4994cfSMichael Ellerman #ifndef _UAPI_LINUX_KCMP_H
23f4994cfSMichael Ellerman #define _UAPI_LINUX_KCMP_H
33f4994cfSMichael Ellerman 
4*0791e364SCyrill Gorcunov #include <linux/types.h>
5*0791e364SCyrill Gorcunov 
63f4994cfSMichael Ellerman /* Comparison type */
73f4994cfSMichael Ellerman enum kcmp_type {
83f4994cfSMichael Ellerman 	KCMP_FILE,
93f4994cfSMichael Ellerman 	KCMP_VM,
103f4994cfSMichael Ellerman 	KCMP_FILES,
113f4994cfSMichael Ellerman 	KCMP_FS,
123f4994cfSMichael Ellerman 	KCMP_SIGHAND,
133f4994cfSMichael Ellerman 	KCMP_IO,
143f4994cfSMichael Ellerman 	KCMP_SYSVSEM,
15*0791e364SCyrill Gorcunov 	KCMP_EPOLL_TFD,
163f4994cfSMichael Ellerman 
173f4994cfSMichael Ellerman 	KCMP_TYPES,
183f4994cfSMichael Ellerman };
193f4994cfSMichael Ellerman 
20*0791e364SCyrill Gorcunov /* Slot for KCMP_EPOLL_TFD */
21*0791e364SCyrill Gorcunov struct kcmp_epoll_slot {
22*0791e364SCyrill Gorcunov 	__u32 efd;		/* epoll file descriptor */
23*0791e364SCyrill Gorcunov 	__u32 tfd;		/* target file number */
24*0791e364SCyrill Gorcunov 	__u32 toff;		/* target offset within same numbered sequence */
25*0791e364SCyrill Gorcunov };
26*0791e364SCyrill Gorcunov 
273f4994cfSMichael Ellerman #endif /* _UAPI_LINUX_KCMP_H */
28