summaryrefslogtreecommitdiffstats
path: root/guestfs-actions.pod
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-06-30 11:17:06 +0100
committerRichard W.M. Jones <rjones@redhat.com>2009-06-30 13:10:44 +0100
commitf68b3ac861ae607a333211c775dded82ae2b2c4a (patch)
tree03dfee58ccfd723bcbc9dc6c6d7270629ae4489d /guestfs-actions.pod
parent3d15f7e652340777514ff30c3cfc560a90b612ec (diff)
downloadlibguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.tar.gz
libguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.tar.xz
libguestfs-f68b3ac861ae607a333211c775dded82ae2b2c4a.zip
Generated code for 'set_memsize'/'get_memsize' calls.
Diffstat (limited to 'guestfs-actions.pod')
-rw-r--r--guestfs-actions.pod34
1 files changed, 34 insertions, 0 deletions
diff --git a/guestfs-actions.pod b/guestfs-actions.pod
index aade37b9..1225dccb 100644
--- a/guestfs-actions.pod
+++ b/guestfs-actions.pod
@@ -885,6 +885,22 @@ C<device>.
This function returns a string, or NULL on error.
I<The caller must free the returned string after use>.
+=head2 guestfs_get_memsize
+
+ int guestfs_get_memsize (guestfs_h *handle);
+
+This gets the memory size in megabytes allocated to the
+qemu subprocess.
+
+If C<guestfs_set_memsize> was not called
+on this handle, and if C<LIBGUESTFS_MEMSIZE> was not set,
+then this returns the compiled-in default value for memsize.
+
+For more information on the architecture of libguestfs,
+see L<guestfs(3)>.
+
+On error this function returns -1.
+
=head2 guestfs_get_path
const char *guestfs_get_path (guestfs_h *handle);
@@ -1737,6 +1753,24 @@ to return the existing UUID of a filesystem.
This function returns 0 on success or -1 on error.
+=head2 guestfs_set_memsize
+
+ int guestfs_set_memsize (guestfs_h *handle,
+ int memsize);
+
+This sets the memory size in megabytes allocated to the
+qemu subprocess. This only has any effect if called before
+C<guestfs_launch>.
+
+You can also change this by setting the environment
+variable C<LIBGUESTFS_MEMSIZE> before the handle is
+created.
+
+For more information on the architecture of libguestfs,
+see L<guestfs(3)>.
+
+This function returns 0 on success or -1 on error.
+
=head2 guestfs_set_path
int guestfs_set_path (guestfs_h *handle,