mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
Just for debugging. Useful to know how the tree was built Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
18 lines
379 B
C
18 lines
379 B
C
#ifndef FILE_IDS_H__
|
|
#define FILE_IDS_H__
|
|
|
|
#include "compiler.h"
|
|
#include "types.h"
|
|
#include "rbtree.h"
|
|
|
|
#define FD_ID_INVALID (-1UL)
|
|
#define FD_PID_INVALID ((int)-2UL)
|
|
|
|
#define MAKE_FD_GENID(dev, ino, pos) \
|
|
(((u32)(dev) ^ (u32)(ino) ^ (u32)(pos)))
|
|
|
|
extern long fd_id_entry_collect(u64 genid, pid_t pid, int fd);
|
|
extern void fd_id_show_tree(void);
|
|
|
|
#endif /* FILE_IDS_H__ */
|