Would there be any interest in providing an IPC mechanism that isn’t SysV 
message queues, something more akin to Mach IPC? (Though hopefully with far 
fewer API footguns.)

The main features I’d want in such an API are:

- Distinct send, receive, and send-once rights
- Port sets for a receive-multiple operation
- Passing of both descriptors and ports across ports
- Allowing messages to queue while a port is in transit between processes
- Both in-band and out-of-band message data
- Zero-copy for out-of-band data where feasible (it’s OK if this requires 
special memory primitives)
- Support for use both between processes and between processes and the kernel
- Allowing explicit (but not default) passing of ports across fork/spawn

Basically the Mach feature set, sans audit trailers or task-special ports. 
(Allowing a port to be explicitly passed from parent to child—as with 
mach_ports_register(), but without the limitations—seems like it would obviate 
the need for a bootstrap port. And the other task-special ports seem pretty 
specific to Mach’s architecture, where everything’s a port.)

Is this something people would find useful if some time was spent on it? Among 
other things I could see it being useful in an improved init/rc system and of 
course in things like display servers/window systems.

  -- Chris

Reply via email to