X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=guestfs-actions.pod;fp=guestfs-actions.pod;h=b3daa0549ef9e8f648e3c1c163f157eceaf77fbd;hb=9222136ac9b2e404dba128b1ac74dacaa8bf1038;hp=1cd4701e255d89af3070bdea2b2b75e300c2f6ca;hpb=2dc9e8a858b62830d15a8186fe575eb7903d2171;p=libguestfs.git diff --git a/guestfs-actions.pod b/guestfs-actions.pod index 1cd4701..b3daa05 100644 --- a/guestfs-actions.pod +++ b/guestfs-actions.pod @@ -576,6 +576,23 @@ See also C, C. This function returns 0 on success or -1 on error. +=head2 guestfs_drop_caches + + int guestfs_drop_caches (guestfs_h *handle, + int whattodrop); + +This instructs the guest kernel to drop its page cache, +and/or dentries and inode caches. The parameter C +tells the kernel what precisely to drop, see +L + +Setting C to 3 should drop everything. + +This automatically calls L before the operation, +so that the maximum guest memory is freed. + +This function returns 0 on success or -1 on error. + =head2 guestfs_exists int guestfs_exists (guestfs_h *handle,