---
name: "wl_shm_pool"
section: "3"
platform: "linux"
package: "wayland-docs"
version: "1.26.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/wl_shm_pool"
---

# wl\_shm\_pool(3)

## NAME

wl\_shm\_pool

## 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**\

## Member Function Documentation

### void wl\_shm\_pool\_unref (struct wl\_shm\_pool \* pool)

Unreference a **shm\_pool**

**Parameters**

*pool* The pool object

Drops a reference to a **wl\_shm\_pool** object.

This is only necessary if the compositor has explicitly taken a reference with **wl\_shm\_buffer\_ref\_pool()**, otherwise the pool will be automatically destroyed when appropriate.

**See also**

**wl\_shm\_buffer\_ref\_pool**

## Field Documentation

### char\* wl\_shm\_pool::data

### int wl\_shm\_pool::external\_refcount

### int wl\_shm\_pool::internal\_refcount

### int wl\_shm\_pool::mmap\_fd

### int wl\_shm\_pool::mmap\_flags

### int wl\_shm\_pool::mmap\_prot

### ssize\_t wl\_shm\_pool::new\_size

### struct wl\_resource\* wl\_shm\_pool::resource

### bool wl\_shm\_pool::sigbus\_is\_impossible

### ssize\_t wl\_shm\_pool::size

## Author

Generated automatically by Doxygen for Wayland from the source code.
