Settings

Theme

Ask HN: Why is no one talking about kernel assisted IPC bus?

5 points by unmdplyr 6 years ago · 2 comments · 1 min read


I've been looking at kd-bus and its later evolution bus1. Seems like both projects are stalled. Why are kernel developers not supportive of a proper messaging system through kernel itself? Or rather what is stopping them from accepting patches to it?

bus1 -> https://bus1.org/

Can someone help me understand?

tlb 6 years ago

Help me understand why Bus1 is a good idea? I'm not an expert, but it seems to me like D-bus accomplishes similar goals without any new mechanisms in the kernel.

  • unmdplyrOP 6 years ago

    Having bus functionality enabled in kernel is beneficial for several reasons. It strips out lots of unnecessary bells and whistles and just hold some skeleton for send/receive/advertise. Most POSIX IPCs don't have an advertisement mechanism that enables discovery without some external persuasion.

    D-Bus does this but has often been criticised for being overtly complex. OpenWRT came with a simpler solution, but then quickly defined a data protocol which suffers severely in I/O - it needs JSON for everything.

    BUS1 doesn't specify a protocol for actual data itself so I can send/recv C struct which my process groups know about it.

    Also, leaving bus logic in kernel would mean I can write a minimalistic library wrapping the syscalls for my specialised use, yet keep the applications readily portable should plans change.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection