fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / include / linux / vserver / signal_cmd.h
1 #ifndef _VX_SIGNAL_CMD_H
2 #define _VX_SIGNAL_CMD_H
3
4
5 /*  signalling vserver commands */
6
7 #define VCMD_ctx_kill           VC_CMD(PROCTRL, 1, 0)
8 #define VCMD_wait_exit          VC_CMD(EVENT, 99, 0)
9
10 struct  vcmd_ctx_kill_v0 {
11         int32_t pid;
12         int32_t sig;
13 };
14
15 struct  vcmd_wait_exit_v0 {
16         int32_t reboot_cmd;
17         int32_t exit_code;
18 };
19
20 #ifdef  __KERNEL__
21
22 extern int vc_ctx_kill(struct vx_info *, void __user *);
23 extern int vc_wait_exit(struct vx_info *, void __user *);
24
25 #endif  /* __KERNEL__ */
26
27 /*  process alteration commands */
28
29 #define VCMD_get_pflags         VC_CMD(PROCALT, 5, 0)
30 #define VCMD_set_pflags         VC_CMD(PROCALT, 6, 0)
31
32 struct  vcmd_pflags_v0 {
33         uint32_t flagword;
34         uint32_t mask;
35 };
36
37 #ifdef  __KERNEL__
38
39 extern int vc_get_pflags(uint32_t pid, void __user *);
40 extern int vc_set_pflags(uint32_t pid, void __user *);
41
42 #endif  /* __KERNEL__ */
43 #endif  /* _VX_SIGNAL_CMD_H */