All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] memfd_secret.2: mention that it inhibits hibernation
@ 2022-01-23 12:34 наб
  2022-01-23 12:36 ` [PATCH 2/2] memfd_secret.2: mention ENOSYS is also returned when secretmem_enable=0 наб
  0 siblings, 1 reply; 2+ messages in thread
From: наб @ 2022-01-23 12:34 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 844 bytes --]

Ref: https://lore.kernel.org/all/20210518072034.31572-6-rppt@kernel.org/
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
 man2/memfd_secret.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/man2/memfd_secret.2 b/man2/memfd_secret.2
index f3380818e..e9fc8aaa0 100644
--- a/man2/memfd_secret.2
+++ b/man2/memfd_secret.2
@@ -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
-- 
2.30.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] memfd_secret.2: mention ENOSYS is also returned when secretmem_enable=0
  2022-01-23 12:34 [PATCH 1/2] memfd_secret.2: mention that it inhibits hibernation наб
@ 2022-01-23 12:36 ` наб
  0 siblings, 0 replies; 2+ messages in thread
From: наб @ 2022-01-23 12:36 UTC (permalink / raw)
  To: Alejandro Colomar (man-pages); +Cc: linux-man

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

Ref: https://lore.kernel.org/all/20210518072034.31572-5-rppt@kernel.org/
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
---
I went a bit Big here and noted the parameter name,
dunno if you like that or not.

 man2/memfd_secret.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man2/memfd_secret.2 b/man2/memfd_secret.2
index e9fc8aaa0..ee7614aa0 100644
--- a/man2/memfd_secret.2
+++ b/man2/memfd_secret.2
@@ -141,7 +141,9 @@ There was insufficient memory to create a new anonymous file.
 .TP
 .B ENOSYS
 .BR memfd_secret ()
-is not implemented on this architecture.
+is not implemented on this architecture,
+or has not been enabled on the kernel command-line with
+.BR secretmem_enable =1.
 .SH VERSIONS
 The
 .BR memfd_secret ()
-- 
2.30.2

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-23 12:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-23 12:34 [PATCH 1/2] memfd_secret.2: mention that it inhibits hibernation наб
2022-01-23 12:36 ` [PATCH 2/2] memfd_secret.2: mention ENOSYS is also returned when secretmem_enable=0 наб

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.