switch.c File Reference

#include <stdint.h>
#include "linux/vserver/switch.h"
#include "linux/vserver/debug_cmd.h"
#include "vserver.h"

Include dependency graph for switch.c:

Go to the source code of this file.

Functions

int vs_get_version (void)
 Get vserver version of running kernel.
int vs_get_config (void)
 Get vserver configuration of running kernel.


Function Documentation

int vs_get_version ( void   ) 

Get vserver version of running kernel.

Returns:
Kernel version

Definition at line 25 of file switch.c.

References vserver().

00026 {
00027         return vserver(VCMD_get_version, 0, NULL);
00028 }

int vs_get_config ( void   ) 

Get vserver configuration of running kernel.

Returns:
Kernel configuration

Definition at line 30 of file switch.c.

References vserver().

00031 {
00032         return vserver(VCMD_get_vci, 0, NULL);
00033 }


Generated on Wed Jun 20 19:50:09 2007 for libvserver by  doxygen 1.5.2