criu/include/eventpoll.h
Andrey Vagin 0fc129a121 files: pass a file descriptor on an fdinfo image instead of cr_fdset
Currently fdinfo dumps for each task, so CR_FD_FDINFO is in cr_fdset.
A few tasks can share one fd table and the set of descriptors will be
dumped once and a image name will contain files_id instead of pid.
In this case CR_FD_FDINFO will go away from cr_fdset.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-01-11 14:47:09 +04:00

18 lines
487 B
C

#ifndef __CR_EVENTPOLL_H__
#define __CR_EVENTPOLL_H__
#include <sys/types.h>
#include <unistd.h>
#include "compiler.h"
#include "asm/types.h"
#include "files.h"
#include "crtools.h"
extern int is_eventpoll_link(int lfd);
extern int dump_eventpoll(struct fd_parms *p, int lfd, const int fdinfo);
extern int collect_eventpoll(void);
extern void show_eventpoll(int fd, struct cr_options *o);
extern void show_eventpoll_tfd(int fd, struct cr_options *o);
#endif /* __CR_EVENTPOLL_H__ */