android: binder: support multiple /dev instances.
authorMartijn Coenen <maco@google.com>
Fri, 30 Sep 2016 14:08:09 +0000 (16:08 +0200)
committerStricted <info@stricted.net>
Thu, 11 Oct 2018 16:12:58 +0000 (18:12 +0200)
commitbfd99b4244b234a255f9edd1df2dd9c2ff2c47d0
tree1930868392a9f04730eb5d4141ff1fd7a1cfb487
parenta64af2cfe082c31997ecab5d9775d387a66434a7
android: binder: support multiple /dev instances.

Add a new module parameter 'devices', that can be
used to specify the names of the binder device
nodes we want to populate in /dev.

Each device node has its own context manager, and
is therefore logically separated from all the other
device nodes.

The config option CONFIG_ANDROID_BINDER_DEVICES can
be used to set the default value of the parameter.

This approach was favored over using IPC namespaces,
mostly because we require a single process to be a
part of multiple binder contexts, which seemed harder
to achieve with namespaces.

Change-Id: I3df72b2a19b5ad5a0360e6322482db7b00a12b24
Signed-off-by: Martijn Coenen <maco@google.com>
drivers/android/Kconfig
drivers/android/binder.c