Module libafl_bolts::shmem
source · Expand description
A generic shared memory region to be used by any functions (queues or feedbacks too.)
Re-exports§
pub use unix_shmem::MmapShMem;
pub use unix_shmem::MmapShMemProvider;
pub use unix_shmem::UnixShMem;
pub use unix_shmem::UnixShMemProvider;
pub use crate::os::unix_shmem_server::ServedShMemProvider;
pub use crate::os::unix_shmem_server::ShMemService;
Modules§
- A Unix sharedmem implementation.
Structs§
- A
ShMemService
dummy, that does nothing on start. Drop in for targets that don’t need a server for ref counting and page creation. - A Reference Counted shared map, that can use internal mutability. Useful if the
ShMemProvider
needs to keep local state. - A Reference Counted
ShMemProvider
, that can use internal mutability. Useful if theShMemProvider
needs to keep local state. - A cursor around
ShMem
that immitatesstd::io::Cursor
. Notably, this implementsWrite
forShMem
in std environments. - Description of a shared map. May be used to restore the map by id.
- An id associated with a given shared memory mapping (
ShMem
), which can be used to establish shared-mappings between proccesses. Id is a file descriptor if you useMmapShMem
orAshmemShMem
. That means you have to use shmem server to access to the shmem segment from other processes in these cases. On the other hand, id is a unique identifier if you useCommonUnixShMem
orWin32ShMem
. In these two cases, you can use shmat(id) orOpenFileMappingA
(id) to gain access to the shmem
Traits§
- A
ShMem
is an interface to shared maps. They are the backbone ofcrate::llmp
for inter-process communication. All you need for scaling on a new target is to implement this interface, as well as the respectiveShMemProvider
. - A
ShMemProvider
provides access to shared maps. They are the backbone ofcrate::llmp
for inter-process communication. All you need for scaling on a new target is to implement this interface, as well as the respectiveShMem
.
Type Aliases§
- The standard served shmem provider
- The default
ShMemProvider
for this os. - The standard sharedmem service