criu/include/eventfd.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

17 lines
412 B
C

#ifndef __CR_EVENTFD_H__
#define __CR_EVENTFD_H__
#include <sys/types.h>
#include <unistd.h>
#include "compiler.h"
#include "asm/types.h"
#include "files.h"
#include "crtools.h"
extern int is_eventfd_link(int lfd);
extern int dump_eventfd(struct fd_parms *p, int lfd, const int fdinfo);
extern int collect_eventfd(void);
extern void show_eventfds(int fd, struct cr_options *o);
#endif /* __CR_EVENTFD_H__ */