pub fn create_segment<Conn>(
conn: &Conn,
shmseg: Seg,
size: u32,
read_only: bool,
) -> Result<CookieWithFds<'_, Conn, CreateSegmentReply>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
Asks the server to allocate a shared memory segment..
Asks the server to allocate a shared memory segment. The server’s reply will include a file descriptor for the client to pass to mmap().
§Fields
shmseg
- A shared memory segment ID created with xcb_generate_id().size
- The size of the segment to create.read_only
- True if the server should map the segment read-only; otherwise false.