Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces
by jabl on Wednesday June 21, 2023 @04:47AM
(#36416036)
For an example, most high performance devices expose functionality as memory locations mapped into the CPU address space. In many cases it's necessary to allow userspace direct access to (part of) the memory the device exposes, such as with GPU's, RDMA NIC's and so forth. Not sure you could get high performance with a read/write stream based interface, as conceptually elegant such an interface is.
[ Parent
| on HN ]
Re:Linux Namespaces Are a Poor Man's Plan 9 Namespaces
by creshal on Wednesday June 21, 2023 @05:14AM
(#36416237)
Devices have been doing that since forever, so Plan9 has an mmap equivalent with segment/segattach, where you use file I/O (only) to define a memory mapping and attach it to the current process. Everything from that point on is regular memory I/O.