libmizu 0.2.0
Lock-free shared-memory IPC at thread speed in C11
Loading...
Searching...
No Matches
mizu_shm_s Struct Reference

The public opaque type in mizu.h; defined here for bindings (the core's control-region mappings embed one in the handle structs). More...

#include <mizu_ext.h>

Data Fields

void * addr
size_t size
char name [MIZU_NAME_MAX]
uint8_t name_len
unsigned int pid
 creator PID: fork guard (POSIX only)
uint8_t collapsed
 Linux: whole 2 MiB extents of addr are huge (set by a successful MADV_COLLAPSE; one-way latch — a shared mapping's folios are never split by mizu).

Detailed Description

The public opaque type in mizu.h; defined here for bindings (the core's control-region mappings embed one in the handle structs).

Layout-pinned per minor release like the rest of this tier: any field addition or reorder forces a binding rebuild. addr/size/name are borrowed reads, valid until close.


The documentation for this struct was generated from the following file: