[CRIU] [PATCH 4/9] kcmp: Add epoll definitions
Andrey Vagin
avagin at virtuozzo.com
Sat Jun 23 08:30:18 MSK 2018
On Wed, Jun 20, 2018 at 08:01:42PM +0300, Cyrill Gorcunov wrote:
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
> ---
> criu/include/kcmp.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/criu/include/kcmp.h b/criu/include/kcmp.h
> index 76f557bff047..f1c898d71260 100644
> --- a/criu/include/kcmp.h
> +++ b/criu/include/kcmp.h
> @@ -1,6 +1,8 @@
> #ifndef __CR_KCMP_H__
> #define __CR_KCMP_H__
>
> +#include <stdint.h>
> +
> enum kcmp_type {
> KCMP_FILE,
> KCMP_VM,
> @@ -9,8 +11,16 @@ enum kcmp_type {
> KCMP_SIGHAND,
> KCMP_IO,
> KCMP_SYSVSEM,
> + KCMP_EPOLL_TFD,
When was it added into the kernel?
>
> KCMP_TYPES,
> };
>
> +/* Slot for KCMP_EPOLL_TFD */
> +typedef struct {
> + uint32_t efd; /* epoll file descriptor */
> + uint32_t tfd; /* target file number */
> + uint32_t toff; /* target offset within same numbered sequence */
> +} kcmp_epoll_slot_t;
> +
> #endif /* __CR_KCMP_H__ */
> --
> 2.14.4
>
More information about the CRIU
mailing list