Skip to content

Rework shared memory to implement POSIX shm #437

Description

@klange

Our shared memory subsystem is similar enough to POSIX shm that it should be feasible to rework it to be POSIX compliant.

POSIX does not require shared memory objects to be interchangable with files, outside of using the file descriptor table to identify handles to them. As such, this work can be almost entirely independent of the new VFS.

Our shared memory subsystem is also the closest thing we have to an mmap, as it manages address space allocation, so it is a good place to begin work on a real mmap even if we're still not considering file mappings.

If we can migrate our exposed API to match the POSIX shm APIs, and make use of this in Yutani (for window textures and font caching, though with a real mmap the latter will become less relevant), it will bring us one step closer to our compositor and desktop application stack being portable to other OSes.

See also #410 which proposes similar plans for packetfs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NVFSRelates to the new virtual file system implementation, or is blocked by it.kernelPlaceholder for unspecified kernel issues.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions