wl_shm_pool(3)
πΈ wl_shm_pool(3) πΈ
okay so bestie, welcome to the Library Functions Manual π this one's all about wl_shm_pool β the shared-memory pool struct from Wayland, and no cap it's lowkey just a struct with a little refcount drama going on. let's get into it β¨
β¨ NAME β¨
wl_shm_pool β it's giving shared memory pool, it's giving struct, it's giving main character energy π«Ά
π SYNOPSIS π
π Public Member Functions
void wl_shm_pool_unref (struct wl_shm_pool *pool)
π¦ Data Fields
struct wl_resource * resource
int internal_refcount
int external_refcount
char * data
ssize_t size
ssize_t new_size
int mmap_fd
int mmap_flags
int mmap_prot
bool sigbus_is_impossible
periodt. that's the whole vibe check, every field accounted for, nothing skipped π―
π Member Function Documentation π
π void wl_shm_pool_unref (struct wl_shm_pool * pool)
Unreference a shm_pool β literally what it says on the tin, bestie.
Parameters
poolβ the pool object π«§
Drops a reference to a wl_shm_pool object. okay so listen, this is only necessary if the compositor has explicitly taken a reference with wl_shm_buffer_ref_pool(). if it hasn't? then don't worry about it, the pool gets automatically destroyed when appropriate. the universe handles it for you, it's very self-sufficient like that π
See also
wl_shm_buffer_ref_pool
fr fr, if you're out here calling wl_shm_pool_unref on a pool nobody ever ref'd, that's not the move. read the paragraph again. we love a careful queen π
πΈ Field Documentation πΈ
here's the full roster, alphabetical order because Doxygen said so, and we respect the algorithm β¨
char* wl_shm_pool::dataβ the data πΎint wl_shm_pool::external_refcountβ the outside refcount πint wl_shm_pool::internal_refcountβ the inside refcount π«Άint wl_shm_pool::mmap_fdβ the mmap fd πint wl_shm_pool::mmap_flagsβ the mmap flags π©int wl_shm_pool::mmap_protβ the mmap prot π‘οΈssize_t wl_shm_pool::new_sizeβ the new size πstruct wl_resource* wl_shm_pool::resourceβ the resource πbool wl_shm_pool::sigbus_is_impossibleβ the bool that says whether SIGBUS is impossible π (iconic name, no notes)ssize_t wl_shm_pool::sizeβ the size π
π§ Author π§
Generated automatically by Doxygen for Wayland from the source code. so nobody hand-wrote this, the machine did it, and honestly? it ate π€β¨
and that's the whole page, bestie!! π¦ this little cutie came from the Wayland project, Version 1.26.0, and you're reading wl_shm_pool(3) π go forth and reference your pools responsibly, mwah πππ
π¦ where this page comes from
- arch rolling: wayland-docs 1.26.0-1 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 43: wayland-devel 1.26.0-1.fc43 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- fedora 44: wayland-devel 1.26.0-1.fc44 Β· MIT
- nixpkgs unstable: wayland 1.26.0
- ubuntu stonking: libwayland-doc 1.26.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms