Product SiteDocumentation Site

A.4. wl_shm - shared memory support

Support for shared memory buffers.

A.4.1. Requests provided by wl_shm

A.4.1.1. wl_shm::create_buffer - create a wl_buffer

Transfer a shm buffer to the server. The allocated buffer would include at least stride * height bytes starting at the beginning of fd. The file descriptor is transferred over the socket using AF_UNIX magical features. width, height, stride and format describe the respective properties of the pixel data contained in the buffer.
wl_shm::create_buffer arguments
id
Type: new_id
fd
Type: fd
width
Type: int
height
Type: int
stride
Type: uint
format
Type: uint