-
-
Notifications
You must be signed in to change notification settings - Fork 541
Rework shared memory to implement POSIX shm #437
Copy link
Copy link
Open
Labels
NVFSRelates to the new virtual file system implementation, or is blocked by it.Relates to the new virtual file system implementation, or is blocked by it.kernelPlaceholder for unspecified kernel issues.Placeholder for unspecified kernel issues.
Description
Metadata
Metadata
Assignees
Labels
NVFSRelates to the new virtual file system implementation, or is blocked by it.Relates to the new virtual file system implementation, or is blocked by it.kernelPlaceholder for unspecified kernel issues.Placeholder for unspecified kernel issues.
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 realmmapeven 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.