X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fvserver%2Fcontext.h;h=79f90537f8a54374c6e2ef9f1e9a0f07a5ef749f;hb=8e8ece46a861c84343256819eaec77e608ff9217;hp=a5a77e0c9a5cc5c3028fda41754efe7b09da3185;hpb=a6d8dea2993ef90fb69b81372daa0b63f8aa940e;p=linux-2.6.git diff --git a/include/linux/vserver/context.h b/include/linux/vserver/context.h index a5a77e0c9..79f90537f 100644 --- a/include/linux/vserver/context.h +++ b/include/linux/vserver/context.h @@ -36,6 +36,8 @@ #define VXF_STATE_SETUP (1ULL<<32) #define VXF_STATE_INIT (1ULL<<33) +#define VXF_STATE_HELPER (1ULL<<36) + #define VXF_FORK_RSS (1ULL<<48) #define VXF_PROLIFIC (1ULL<<49) @@ -43,6 +45,8 @@ #define VXF_ONE_TIME (0x0003ULL<<32) +#define VXF_INIT_SET (VXF_STATE_SETUP|VXF_STATE_INIT) + /* context caps */ @@ -66,6 +70,9 @@ enum { VSC_STARTUP = 1, VSC_SHUTDOWN, + + VSC_NETUP, + VSC_NETDOWN, }; @@ -81,7 +88,6 @@ enum { struct vx_info { struct hlist_node vx_hlist; /* linked list of contexts */ - struct rcu_head vx_rcu; /* the rcu head */ xid_t vx_id; /* context id */ atomic_t vx_usecnt; /* usage count */ atomic_t vx_tasks; /* tasks count */ @@ -96,7 +102,6 @@ struct vx_info { pid_t vx_initpid; /* PID of fake init process */ - spinlock_t vx_lock; wait_queue_head_t vx_wait; /* context exit waitqueue */ struct _vx_limit limit; /* vserver limits */ @@ -114,7 +119,6 @@ struct vx_info { #define VXS_PAUSED 0x0010 #define VXS_ONHOLD 0x0020 #define VXS_SHUTDOWN 0x0100 -#define VXS_DEFUNCT 0x1000 #define VXS_RELEASED 0x8000 /* check conditions */ @@ -150,8 +154,6 @@ extern int vx_migrate_task(struct task_struct *, struct vx_info *); extern long vs_state_change(struct vx_info *, unsigned int); -extern void free_vx_info(struct vx_info *); - #endif /* __KERNEL__ */ #else /* _VX_CONTEXT_H */