memfd: Open temporary anonymous Linux file handles

[ apache, filesystem, library, linux ] [ Propose Tags ]

"memfd" (memory file descriptor) lets us open pseudo-"files" that are not actually stored in the "real" file system. This feature is only available on Linux.

Such a file is described as an "anonymous file". It behaves like a regular file, and so can be modified, truncated, memory-mapped, and so on. However, unlike a regular file, it lives in RAM and has a volatile backing storage. Once all references to the file are dropped, it is automatically released.

The recommended way to import this library is:

import qualified Memfd

There is one central function:

create :: CreateOptions -> IO Fd

Fd stands for "file descriptor". Here are some things you can do with a file descriptor:

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.1.2, 1.0.1.3
Dependencies base (>=4.14 && <4.17), transformers (>=0.5 && <0.7) [details]
License Apache-2.0
Copyright 2022 Mission Valley Software LLC
Author Chris Martin
Maintainer Chris Martin, Julie Moronuki
Category Filesystem, Linux
Home page https://github.com/typeclasses/memfd
Bug tracker https://github.com/typeclasses/memfd/issues
Source repo head: git clone git://github.com/typeclasses/memfd.git
Uploaded by chris_martin at 2022-06-13T23:48:30Z
Distributions LTSHaskell:1.0.1.3, NixOS:1.0.1.3
Downloads 338 total (17 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-06-14 [all 1 reports]