2014-06-30 21:58:05 +04:00
|
|
|
#ifndef __CR_TIMERFD_H__
|
|
|
|
#define __CR_TIMERFD_H__
|
|
|
|
|
|
|
|
#include <time.h>
|
2015-06-12 18:31:00 +03:00
|
|
|
#include <sys/ioctl.h>
|
2014-06-30 21:58:05 +04:00
|
|
|
|
|
|
|
#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;
|
2015-06-25 15:36:57 +03:00
|
|
|
|
|
|
|
int rst_timerfd_prep(void);
|
|
|
|
extern unsigned long rst_timerfd_cpos;
|
2014-06-30 21:58:05 +04:00
|
|
|
extern unsigned int rst_timerfd_nr;
|
|
|
|
|
|
|
|
|
2014-08-06 20:31:46 +04:00
|
|
|
extern int check_timerfd(void);
|
2014-06-30 21:58:05 +04:00
|
|
|
extern int is_timerfd_link(char *link);
|
|
|
|
|
|
|
|
#ifndef TFD_TIMER_ABSTIME
|
|
|
|
# define TFD_TIMER_ABSTIME (1 << 0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TFD_IOC_SET_TICKS
|
2015-06-12 18:31:00 +03:00
|
|
|
# define TFD_IOC_SET_TICKS _IOW('T', 0, u64)
|
2014-06-30 21:58:05 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __CR_TIMERFD_H__ */
|