News for hackers. Stuff that matters.
Re:The Binder Linux driver is being rewritten in Rust by Xeamek on Friday November 03, 2023 @11:05AM (#38129901)
I am somewhat suprised binder is part of upstream; Are there any other projects aside of Android where binder is used?

Could I theoretically use it in my linux program just like any other IPC mechanism?

Re:The Binder Linux driver is being rewritten in Rust by goodthenandnow on Friday November 03, 2023 @11:25AM (#38130207)
> Could I theoretically use it in my linux program just like any other IPC mechanism?

Yes, absolutely.

However, binder is implemented as a kernel module not enabled by default, so it depends on the build time configuration of your system's target kernel (eg., your distro's).

That given, it's important to note that the binder driver/module is just one piece of a greater framework and it's raw IPC features aren't as simple to use as SysV or POSIX's. For example, it requires a userspace process called context (or service) manager. Android has 3 different binder device instances and it builds a big framework on top of them wiring things like an interface definition language (AIDL), a set of libraries and SELinux permissions.