mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 10:16:41 +00:00
Reported-by: Jenkins Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
40 lines
772 B
C
40 lines
772 B
C
#ifndef __CR_TIMERFD_H__
|
|
#define __CR_TIMERFD_H__
|
|
|
|
#include <time.h>
|
|
|
|
#include "files.h"
|
|
|
|
struct pstree_item;
|
|
|
|
struct restore_timerfd {
|
|
int id;
|
|
int fd;
|
|
int clockid;
|
|
int settime_flags;
|
|
unsigned long ticks;
|
|
struct itimerspec val;
|
|
};
|
|
|
|
extern const struct fdtype_ops timerfd_dump_ops;
|
|
extern struct collect_image_info timerfd_cinfo;
|
|
extern struct restore_timerfd *rst_timerfd;
|
|
extern unsigned int rst_timerfd_nr;
|
|
|
|
static inline unsigned long rst_timerfd_len(void)
|
|
{
|
|
return sizeof(*rst_timerfd) * rst_timerfd_nr;
|
|
}
|
|
|
|
extern int check_timerfd(void);
|
|
extern int is_timerfd_link(char *link);
|
|
|
|
#ifndef TFD_TIMER_ABSTIME
|
|
# define TFD_TIMER_ABSTIME (1 << 0)
|
|
#endif
|
|
|
|
#ifndef TFD_IOC_SET_TICKS
|
|
# define TFD_IOC_SET_TICKS 0x40085400
|
|
#endif
|
|
|
|
#endif /* __CR_TIMERFD_H__ */
|