| Libvirt-sandbox Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <libvirt-sandbox/libvirt-sandbox.h> #define GVIR_SANDBOX_TYPE_CONFIG_INITRD_HANDLE struct GVirSandboxConfigInitrd; struct GVirSandboxConfigInitrdClass; GVirSandboxConfigInitrd * gvir_sandbox_config_initrd_new (void); void gvir_sandbox_config_initrd_set_kver (GVirSandboxConfigInitrd *config,const gchar *version); const gchar * gvir_sandbox_config_initrd_get_kver (GVirSandboxConfigInitrd *config); void gvir_sandbox_config_initrd_set_kmoddir (GVirSandboxConfigInitrd *config,const gchar *kmoddir); const gchar * gvir_sandbox_config_initrd_get_kmoddir (GVirSandboxConfigInitrd *config); void gvir_sandbox_config_initrd_set_init (GVirSandboxConfigInitrd *config,const gchar *hostpath); const gchar * gvir_sandbox_config_initrd_get_init (GVirSandboxConfigInitrd *config); void gvir_sandbox_config_initrd_add_module (GVirSandboxConfigInitrd *config,const gchar *modname); GList * gvir_sandbox_config_initrd_get_modules (GVirSandboxConfigInitrd *config);
"init" gchar* : Read / Write "kmoddir" gchar* : Read / Write "kver" gchar* : Read / Write
Provides an object to store information about a kernel ramdisk
The GVirSandboxConfigInitrd object stores the information required to build a kernel ramdisk to use when booting a virtual machine as a sandbox.
#define GVIR_SANDBOX_TYPE_CONFIG_INITRD_HANDLE (gvir_sandbox_config_initrd_handle_get_type ())
struct GVirSandboxConfigInitrdClass {
GObjectClass parent_class;
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};
GVirSandboxConfigInitrd * gvir_sandbox_config_initrd_new
(void);
Create a new initrd config
Returns : |
a new sandbox initrd object. [transfer full] |
void gvir_sandbox_config_initrd_set_kver (GVirSandboxConfigInitrd *config,const gchar *version);
Sets the host kernel version to use for populating the initrd with modules. This defaults to the currently running kernel version
|
the sandbox initrd config. [transfer none] |
|
the kernel version. [transfer none] |
const gchar * gvir_sandbox_config_initrd_get_kver (GVirSandboxConfigInitrd *config);
Retrieves the path of the kver binary
|
the sandbox initrd config. [transfer none] |
Returns : |
the kver binary path. [transfer none] |
void gvir_sandbox_config_initrd_set_kmoddir (GVirSandboxConfigInitrd *config,const gchar *kmoddir);
Sets the full path to where the kernel modules will be looked up
|
the sandbox initrd config. [transfer none] |
|
the full path to the kernel modules directory. [transfer none] |
const gchar * gvir_sandbox_config_initrd_get_kmoddir
(GVirSandboxConfigInitrd *config);
Retrieves the current kernel modules directory
|
the full path to the kernel modules directory. [transfer none] |
Returns : |
the full path to the kernel modules directory. [transfer none] |
void gvir_sandbox_config_initrd_set_init (GVirSandboxConfigInitrd *config,const gchar *hostpath);
Sets the host binary to be used as the init program inside the initrd. This defaults to /usr/bin/libvirt-sandbox-init-qemu
|
the sandbox initrd config. [transfer none] |
|
the init binary path. [transfer none] |
const gchar * gvir_sandbox_config_initrd_get_init (GVirSandboxConfigInitrd *config);
Retrieves the path of the init binary
|
the sandbox initrd config. [transfer none] |
Returns : |
the init binary path. [transfer none] |
void gvir_sandbox_config_initrd_add_module (GVirSandboxConfigInitrd *config,const gchar *modname);
Request that the kernel module modname is included in the initrd,
along with any depedent modules
|
the sandbox initrd config. [transfer none] |
|
the kernel module name. [transfer none] |
GList * gvir_sandbox_config_initrd_get_modules
(GVirSandboxConfigInitrd *config);
Retrieves the list of all modules
|
the sandbox initrd config. [transfer none] |
Returns : |
the module names. [transfer container][element-type utf8] |