illumos Doors
Posted by Dave Eddy on Jul 06 2026 - tags: techillumos has an IPC mechanism called doors. At a high level, doors allow a process to expose a procedure that another process can call. The client calls into the door, the kernel transfers control to a server thread in the server process, and the server returns a response back to the client. In practice, it feels like making a function call that magically goes across process boundaries.
I have known about doors for a while mostly because they show up all over the
system. For example, name resolution and user lookups, among other things, may
use doors to talk to nscd. I thought it would be fun to write a small example
program to see how the API works and use dtrace to spy on our program a bit.







