]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
memfd_secret.2: mention that it inhibits hibernation
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Sun, 23 Jan 2022 12:34:28 +0000 (13:34 +0100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Tue, 25 Jan 2022 15:48:02 +0000 (16:48 +0100)
Ref: https://lore.kernel.org/all/20210518072034.31572-6-rppt@kernel.org/
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man2/memfd_secret.2

index 1b4e8295475e8979e636f40bb15772d29902119c..28c2f177a4e22e4631c063326fd33ff80dd79969 100644 (file)
@@ -101,7 +101,10 @@ unless the close-on-exec flag has been set.
 .PP
 The memory region is locked into memory in the same way as with
 .BR mlock (2),
-so that it will never be written into swap.
+so that it will never be written into swap,
+and hibernation is inhibited for as long as any
+.BR memfd_secret ()
+descriptions exist.
 However the implementation of
 .BR memfd_secret ()
 will not try to populate the whole range during the