Thread View: muc.lists.netbsd.tech.userlevel
3 messages
3 total messages
Started by Chris Hanson
Wed, 25 Nov 2026 05:48
Any interest in Mach-style IPC?
Author: Chris Hanson
Date: Wed, 25 Nov 2026 05:48
Date: Wed, 25 Nov 2026 05:48
35 lines
3671 bytes
3671 bytes
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 -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Any interest in Mach-style IPC?
Author: Emmanuel Dreyfus
Date: Wed, 25 Nov 2026 06:57
Date: Wed, 25 Nov 2026 06:57
15 lines
2616 bytes
2616 bytes
On Tue, Nov 24, 2026 at 09:48:08PM -0800, Chris Hanson wrote: > 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.) Hi Please note a previous attempt: https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/mach/?copt=1 -- Emmanuel Dreyfus manu@netbsd.org -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Re: Any interest in Mach-style IPC?
Author: Chris Hanson
Date: Wed, 25 Nov 2026 07:06
Date: Wed, 25 Nov 2026 07:06
27 lines
3233 bytes
3233 bytes
On Nov 24, 2026, at 10:57 PM, Emmanuel Dreyfus <manu@netbsd.org> wrote: > > On Tue, Nov 24, 2026 at 09:48:08PM -0800, Chris Hanson wrote: >> 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.) > > Hi > > Please note a previous attempt: > https://cvsweb.netbsd.org/bsdweb.cgi/src/sys/compat/mach/?copt=1 That appears to be an attempt at fairly comprehensive Mach compatibility, presumably in service of Darwin/xnu compatibility. I’d suggest that if someone wanted to implement such compatibility they might be helped by a better-than-SysV IPC system to build on, but that Mach API or system call compatibility shouldn’t be either an explicit or implicit goal of having such an IPC system. -- Chris -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads