blob: ef130501092531b23148898efc08b0e521f3354c [file] [log] [blame]
Greg Kroah-Hartman6f52b162017-11-01 15:08:43 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Michael Ellerman3f4994c2014-12-02 16:52:06 +11002#ifndef _UAPI_LINUX_KCMP_H
3#define _UAPI_LINUX_KCMP_H
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -07004
Cyrill Gorcunov0791e362017-07-12 14:34:28 -07005#include <linux/types.h>
6
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -07007/* Comparison type */
8enum kcmp_type {
9 KCMP_FILE,
10 KCMP_VM,
11 KCMP_FILES,
12 KCMP_FS,
13 KCMP_SIGHAND,
14 KCMP_IO,
15 KCMP_SYSVSEM,
Cyrill Gorcunov0791e362017-07-12 14:34:28 -070016 KCMP_EPOLL_TFD,
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -070017
18 KCMP_TYPES,
19};
20
Cyrill Gorcunov0791e362017-07-12 14:34:28 -070021/* Slot for KCMP_EPOLL_TFD */
22struct 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 Ellerman3f4994c2014-12-02 16:52:06 +110028#endif /* _UAPI_LINUX_KCMP_H */