]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/sync.h
Merge pull request #3235 from xinhua9569/master
[mirror_lxc.git] / src / lxc / sync.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2
3 #ifndef __LXC_SYNC_H
4 #define __LXC_SYNC_H
5
6 struct lxc_handler;
7
8 enum {
9 LXC_SYNC_STARTUP,
10 LXC_SYNC_CONFIGURE,
11 LXC_SYNC_POST_CONFIGURE,
12 LXC_SYNC_CGROUP,
13 LXC_SYNC_CGROUP_UNSHARE,
14 LXC_SYNC_CGROUP_LIMITS,
15 LXC_SYNC_READY_START,
16 LXC_SYNC_RESTART,
17 LXC_SYNC_POST_RESTART,
18 LXC_SYNC_ERROR = -1 /* Used to report errors from another process */
19 };
20
21 int lxc_sync_init(struct lxc_handler *handler);
22 void lxc_sync_fini(struct lxc_handler *);
23 void lxc_sync_fini_parent(struct lxc_handler *);
24 void lxc_sync_fini_child(struct lxc_handler *);
25 int lxc_sync_wake_child(struct lxc_handler *, int);
26 int lxc_sync_wait_child(struct lxc_handler *, int);
27 int lxc_sync_wake_parent(struct lxc_handler *, int);
28 int lxc_sync_wait_parent(struct lxc_handler *, int);
29 int lxc_sync_barrier_parent(struct lxc_handler *, int);
30 int lxc_sync_barrier_child(struct lxc_handler *, int);
31
32 #endif