Skip to main content

memfd_create interface for Linux

Project description

pymemfd -- memfd_create wrapper for Python
==========================================

This modules provides a Python wrapper for the new memfd_create() syscall
and the new file-sealing fcntl() operators.

Low level interface
-------------------

memfd.memfd_create(name, flags) -> int

memfd.MFD_ALLOW_SEALING

memfd.MFD_CLOEXEC

memfd.F_ADD_SEALS

memfd.F_GET_SEALS

memfd.F_SEAL_SEAL

memfd.F_SEAL_GROW

memfd.F_SEAL_SHRINK

memfd.F_SEAL_WRITE


High level interfaces
---------------------

memfd.open(name, *, flags=MFD_CLOEXEC, mode='wb+', buffering=0, closefd=True,
**kwargs) -> io.FileIO

memfd.F_SEAL_ALL

memfd.MFD_ALLOW_SEALING_CLOEXEC

More
----

http://man7.org/linux/man-pages/man2/memfd_create.2.html

https://dvdhrm.wordpress.com/tag/memfd/

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymemfd-0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page