Skip to content

Commit ccf0efb

Browse files
vstinnermiss-islington
authored andcommitted
bpo-26836: Document os.memfd_create() name parameter (GH-13838)
https://bugs.python.org/issue26836
1 parent 9aa7856 commit ccf0efb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Doc/library/os.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3011,6 +3011,13 @@ features:
30113011
(or a bitwise ORed combination of them). By default, the new file
30123012
descriptor is :ref:`non-inheritable <fd_inheritance>`.
30133013

3014+
The name supplied in *name* is used as a filename and will be displayed as
3015+
the target of the corresponding symbolic link in the directory
3016+
``/proc/self/fd/``. The displayed name is always prefixed with ``memfd:``
3017+
and serves only for debugging purposes. Names do not affect the behavior of
3018+
the file descriptor, and as such multiple files can have the same name
3019+
without any side effects.
3020+
30143021
.. availability:: Linux 3.17 or newer with glibc 2.27 or newer.
30153022

30163023
.. versionadded:: 3.8

0 commit comments

Comments
 (0)