Skip to content

Commit b496c26

Browse files
bpo-26836: Document os.memfd_create() name parameter (GH-13838) (GH-13839)
https://bugs.python.org/issue26836 (cherry picked from commit ccf0efb) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 87a865e commit b496c26

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)