criu/include/kcmp-ids.h
Cyrill Gorcunov 830d92b0f0 headers: Unify include guards (in comments) and a few fixes
- fix names in comments
 - add empty lines where needed
 - fix rbtree.h
 - fix syscall-types.h

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-12-25 22:40:24 +04:00

28 lines
496 B
C

#ifndef __CR_KCMP_IDS_H__
#define __CR_KCMP_IDS_H__
struct kid_tree {
struct rb_root root;
unsigned kcmp_type;
unsigned long subid;
};
#define DECLARE_KCMP_TREE(name, type) \
struct kid_tree name = { \
.root = RB_ROOT, \
.kcmp_type = type, \
.subid = 1, \
}
struct kid_elem {
int pid;
unsigned genid;
unsigned idx;
};
u32 kid_generate_gen(struct kid_tree *tree,
struct kid_elem *elem, int *new_id);
void kid_show_tree(struct kid_tree *tree);
#endif /* __CR_KCMP_IDS_H__ */