🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.userlevel
Article #82

Any interest in Mach-style IPC?

#82
From: Chris Hanson
Date: Wed, 25 Nov 2026 05:48
35 lines
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
Technical Details
Message-ID: <9C8BAF58-6C45-4775-B6C6-4A576EB669BD@eschatologist.net>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Chris Hanson <cmhanson@eschatologist.net>
Newsgroups: muc.lists.netbsd.tech.userlevel
Subject: Any interest in Mach-style IPC?
Date: Tue, 24 Nov 2026 21:48:08 -0800
Organization: Newsgate at muc.de e.V.
Sender: tech-userlevel-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <9C8BAF58-6C45-4775-B6C6-4A576EB669BD@eschatologist.net>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\))
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="90966"; mail-complaints-to="news-admin@muc.de"
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (2048-bit key) header.d=eschatologist.net
X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net
X-Sender-Id: dreamhost|x-authsender|cmhanson@eschatologist.net
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|cmhanson@eschatologist.net
X-MailChannels-Auth-Id: dreamhost
X-Army-Chief: 07e0eb2b509c099d_1795585704080_4041499327
X-MC-Loop-Signature: 1795585704080:2099974821
X-MC-Ingress-Time: 1795585704080
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eschatologist.net;
	s=dreamhost; t=1795585699;
	bh=IpJJ+pXm0Kp6xifIRLlTKUTtF9E9rgEBafchM1hm3wU=;
	h=From:Content-Type:Content-Transfer-Encoding:Subject:Date:To;
	b=a38pLWBpe2l992eiWmRCrlqgPlPyGUFQ+PzvLfCmAsPB+Vn5nDEqj3SwplXmeNpR/
	 bj8m2PgVQcPgVU6rpAYZQODQwVXALcDL2EkPulCq7zGZM/Geoeo/cK8HaCA8AJWgTi
	 9JOF8Hmi5NwOBnjapZQgLyucRzFOKrzphnQtk9nbut7zbaTaElEmfkIcnFJIY0mKbV
	 KA0RfFmMwyikBzl46amnnF001f+8y3uUnL4Gj7bD+Ch8rmoKhoV6jPtrr2ieraT0qe
	 GgKbFdu6MZ4O3SN/pvDq8T2cloj0CXmC/xlBo6ucEey05PnwxfuVZjRFtsUovHzW0m
	 dkKuF2Pk1UmnA==
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes