Skip to content

Commit 51995ff

Browse files
ebiggersrafaeljw
authored andcommitted
PM: hibernate: fix docs for ioctls that return loff_t via pointer
Correctly document how the SNAPSHOT_GET_IMAGE_SIZE and SNAPSHOT_AVAIL_SWAP_SIZE ioctls return their result. Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2591e7b commit 51995ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Documentation/power/userland-swsusp.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ SNAPSHOT_PREF_IMAGE_SIZE
6969

7070
SNAPSHOT_GET_IMAGE_SIZE
7171
return the actual size of the hibernation image
72+
(the last argument should be a pointer to a loff_t variable that
73+
will contain the result if the call is successful)
7274

7375
SNAPSHOT_AVAIL_SWAP_SIZE
74-
return the amount of available swap in bytes (the
75-
last argument should be a pointer to an unsigned int variable that will
76-
contain the result if the call is successful).
76+
return the amount of available swap in bytes
77+
(the last argument should be a pointer to a loff_t variable that
78+
will contain the result if the call is successful)
7779

7880
SNAPSHOT_ALLOC_SWAP_PAGE
7981
allocate a swap page from the resume partition

0 commit comments

Comments
 (0)