shmemfdrs2

Crates.ioshmemfdrs2
lib.rsshmemfdrs2
version1.0.0
sourcesrc
created_at2024-02-25 11:27:46.562594
updated_at2024-02-25 11:27:46.562594
descriptionCreates anonymous shared memory file descriptors for IPC on Unix platforms, using memfd/SHM_ANON/shm_open.
homepagehttps://github.com/MaxVerevkin/shmemfdrs2
repositoryhttps://github.com/MaxVerevkin/shmemfdrs2
max_upload_size
id1152387
size20,165
Max Verevkin (MaxVerevkin)

documentation

README

shmemfdrs2

Fork of shmemfdrs.

Provides a single function

pub fn create_shmem<T: AsRef<CStr>>(name: T) -> io::Result<File>;
  • On Linux memfd_create is used.
  • On FreeBSD shm_open with SHM_ANON is used.
  • Other platform use shm_open followed by shm_unlink.

License

Licensed under the Apache License, Version 2.0 < LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0 > or the MIT license < LICENSE-MIT or https://opensource.org/licenses/MIT >, at your option.

Commit count: 0

cargo fmt