Functions | |
int | vc_syscall (uint32_t cmd, xid_t xid, void *data) |
The generic vserver syscall
This function executes the generic vserver syscall. It uses the correct syscallnumber (which may differ between the different architectures). | |
int | vc_get_version () |
Returns the version of the current kernel API. | |
vc_vci_t | vc_get_vci () |
Returns the kernel configuration bits. | |
xid_t | vc_new_s_context (xid_t ctx, unsigned int remove_cap, unsigned int flags) |
Moves current process into a context
Puts current process into context ctx, removes the capabilities given in remove_cap and sets flags. | |
int | vc_set_ipv4root (uint32_t bcast, size_t nb, struct vc_ip_mask_pair const *ips) |
Sets the ipv4root information. | |
xid_t | vc_ctx_create (xid_t xid, struct vc_ctx_flags *flags) |
Creates a context without starting it.
This functions initializes a new context. When already in a freshly created context, this old context will be discarded. | |
int | vc_ctx_migrate (xid_t xid, uint_least64_t flags) |
Moves the current process into the specified context. | |
int | vc_ctx_stat (xid_t xid, struct vc_ctx_stat *stat) |
Get some statistics about a context. | |
int | vc_virt_stat (xid_t xid, struct vc_virt_stat *stat) |
Get more statistics about a context. | |
int | vc_ctx_kill (xid_t ctx, pid_t pid, int sig) |
Sends a signal to a context/pid Special values for pid are:
| |
xid_t | vc_get_task_xid (pid_t pid) |
Returns the context of the given process. | |
int | vc_wait_exit (xid_t xid) |
Waits for the end of a context. | |
int | vc_get_rlimit (xid_t xid, int resource, struct vc_rlimit *lim) |
Returns the limits of resource. | |
int | vc_set_rlimit (xid_t xid, int resource, struct vc_rlimit const *lim) |
Sets the limits of resource. | |
int | vc_rlimit_stat (xid_t xid, int resource, struct vc_rlimit_stat *stat) |
Returns the current stats of resource. | |
int | vc_reset_minmax (xid_t xid) |
Resets the minimum and maximum observed values of all resources. | |
int | vc_get_iattr (char const *filename, xid_t *xid, uint_least32_t *flags, uint_least32_t *mask) |
Returns information about attributes and assigned context of a file.
This function returns the VC_IATTR_XXX flags and about the assigned context of a file. To request an information, the appropriate bit in | |
xid_t | vc_getfilecontext (char const *filename) |
Returns the context of filename
This function calls vc_get_iattr() with appropriate arguments to determine the context of |
|
Creates a context without starting it. This functions initializes a new context. When already in a freshly created context, this old context will be discarded.
|
|
Moves the current process into the specified context.
|
|
Get some statistics about a context.
|
|
Returns information about attributes and assigned context of a file.
This function returns the VC_IATTR_XXX flags and about the assigned context of a file. To request an information, the appropriate bit in
E.g. to receive the assigned context, the
Possible flags are
|
|
Returns the limits of resource.
|
|
Returns the context of the given process.
|
|
Returns the kernel configuration bits.
|
|
Returns the version of the current kernel API.
|
|
Returns the context of
This function calls vc_get_iattr() with appropriate arguments to determine the context of
WARNING: this function can modify
|
|
Moves current process into a context Puts current process into context ctx, removes the capabilities given in remove_cap and sets flags.
|
|
Resets the minimum and maximum observed values of all resources.
|
|
Returns the current stats of resource.
|
|
Sets the ipv4root information.
|
|
Sets the limits of resource.
|
|
The generic vserver syscall This function executes the generic vserver syscall. It uses the correct syscallnumber (which may differ between the different architectures).
|
|
Get more statistics about a context.
|