ascii-chat
Binary v0.15.83-53-gb711d8720
Library lib/v0.3.2-701-gb711d8720
Video chat in your terminal
Loading...
Searching...
No Matches
platform_mmap Struct Reference

For platform mmap, this is the live record that ties addr, size, fd together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record. More...

#include <include/ascii-chat/os/mmap.h>

Data Fields

void * addr
size_t size
int fd

Detailed Description

For platform mmap, this is the live record that ties addr, size, fd together. The owning code creates it, updates it while work is active, and releases its handles and pointed-to storage before freeing the record.

Memory-mapped file handle

Contains platform-specific handles and mapping information. Do not access members directly; use the platform_mmap_* functions.

Definition at line 47 of file os/mmap.h.

Field Documentation

◆ addr

void* platform_mmap::addr

Mapped memory address (NULL if not mapped)

Definition at line 48 of file os/mmap.h.

◆ fd

int platform_mmap::fd

POSIX file descriptor

Definition at line 54 of file os/mmap.h.

◆ size

size_t platform_mmap::size

Size of the mapping in bytes

Definition at line 49 of file os/mmap.h.


The documentation for this struct was generated from the following file: