Crates.io | shmemfdrs2 |
lib.rs | shmemfdrs2 |
version | 1.0.0 |
source | src |
created_at | 2024-02-25 11:27:46.562594 |
updated_at | 2024-02-25 11:27:46.562594 |
description | Creates anonymous shared memory file descriptors for IPC on Unix platforms, using memfd/SHM_ANON/shm_open. |
homepage | https://github.com/MaxVerevkin/shmemfdrs2 |
repository | https://github.com/MaxVerevkin/shmemfdrs2 |
max_upload_size | |
id | 1152387 |
size | 20,165 |
Fork of shmemfdrs.
Provides a single function
pub fn create_shmem<T: AsRef<CStr>>(name: T) -> io::Result<File>;
memfd_create
is used.shm_open
with SHM_ANON
is used.shm_open
followed by shm_unlink
.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.