Product SiteDocumentation Site

A.6. wl_shm - shared memory support

Support for shared memory buffers.

A.6.1. Requests provided by wl_shm

A.6.1.1. wl_shm::create_pool - create a shm pool

This creates wl_shm_pool object, which can be used to create shared memory based wl_buffer objects. The server will mmap size bytes of the passed fd, to use as backing memory for then pool.
wl_shm::create_pool arguments
id
Type: new_id
fd
Type: fd
size
Type: int