]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
PM: hibernate: fix docs for ioctls that return loff_t via pointer
authorEric Biggers <ebiggers@google.com>
Sun, 8 Mar 2020 03:22:16 +0000 (19:22 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2020 10:51:32 +0000 (11:51 +0100)
Correctly document how the SNAPSHOT_GET_IMAGE_SIZE and
SNAPSHOT_AVAIL_SWAP_SIZE ioctls return their result.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/power/userland-swsusp.rst

index a0fa51bb1a4dabcc66c73eabf7806280d7ae0326..1cf62d80a9ca100837c247162e9aa28f6b1f537d 100644 (file)
@@ -69,11 +69,13 @@ SNAPSHOT_PREF_IMAGE_SIZE
 
 SNAPSHOT_GET_IMAGE_SIZE
        return the actual size of the hibernation image
+       (the last argument should be a pointer to a loff_t variable that
+       will contain the result if the call is successful)
 
 SNAPSHOT_AVAIL_SWAP_SIZE
-       return the amount of available swap in bytes (the
-       last argument should be a pointer to an unsigned int variable that will
-       contain the result if the call is successful).
+       return the amount of available swap in bytes
+       (the last argument should be a pointer to a loff_t variable that
+       will contain the result if the call is successful)
 
 SNAPSHOT_ALLOC_SWAP_PAGE
        allocate a swap page from the resume partition