mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-19 17:43:59 +00:00
Based on xemul@ patches. Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Acked-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
34 lines
672 B
C
34 lines
672 B
C
#ifndef CR_SOCKETS_H__
|
|
#define CR_SOCKETS_H__
|
|
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
#include <stdbool.h>
|
|
|
|
struct sk_queue_item {
|
|
int fd;
|
|
int type;
|
|
unsigned int sk_id;
|
|
};
|
|
|
|
struct sk_queue_entry {
|
|
struct sk_queue_item item;
|
|
struct sk_queue_entry *next;
|
|
};
|
|
|
|
struct sk_queue {
|
|
unsigned int entries;
|
|
struct sk_queue_entry *list;
|
|
};
|
|
|
|
struct cr_fdset;
|
|
extern int try_dump_socket(pid_t pid, int fd, const struct cr_fdset *cr_fdset,
|
|
struct sk_queue *queue);
|
|
|
|
extern int collect_sockets(void);
|
|
extern int prepare_sockets(int pid);
|
|
extern void show_unixsk(int fd);
|
|
extern void show_inetsk(int fd);
|
|
extern int show_sk_queues(int fd);
|
|
|
|
#endif /* CR_SOCKETS_H__ */
|