Skip to content

android: binder: support for domains and scatter-gather.

Martijn Coenen lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ANDROID: binder: Add strong ref checksdrivers/android/binder.c+21 -92 replies
2/10ANDROID: binder: Clear binder and cookie when setting handle in flat binder structdrivers/android/binder.c+5 -02 replies
3/10android: binder: split flat_binder_object.drivers/android/binder.c include/uapi/linux/android/binder.h+137 -520 replies
4/10android: binder: support multiple context managers.drivers/android/binder.c+40 -210 replies
5/10android: binder: deal with contexts in debugfs.drivers/android/binder.c+23 -130 replies
6/10android: binder: support multiple /dev instances.drivers/android/Kconfig drivers/android/binder.c+84 -120 replies
7/10android: binder: refactor binder_transact()drivers/android/binder.c+172 -1370 replies
8/10android: binder: add extra size to allocator.drivers/android/binder.c+28 -130 replies
9/10android: binder: support for scatter-gather.drivers/android/binder.c include/uapi/linux/android/binder.h+275 -130 replies
10/10android: binder: support for file-descriptor arrays.drivers/android/binder.c include/uapi/linux/android/binder.h+169 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] android: binder: support for domains and scatter-gather.

Android userspace will start using binder IPC for communication with HAL modules. To clearly separate this IPC domain from the existing framework IPC domain, this patch series adds support for multiple "binder domains". This is implemented by each domain having its own binder context manager, and then having a separate device node per domain.

The other change introduced by this series is scatter-gather; currently all objects passed through binder IPC must be serialized in userspace, with with the exception of binder objects and file descriptors. By adding scatter- gather support for memory buffers, we can avoid the serialization copy, thereby increasing performance for larger transaction sizes.

The two patches from Arve are security patches that we've already applied in android-common. I included them in front of the series because my changes touch quite some of that code.

Arve Hjønnevåg (2):
ANDROID: binder: Add strong ref checks
ANDROID: binder: Clear binder and cookie when setting handle in flat
binder struct

Martijn Coenen (8):
android: binder: split flat_binder_object.
android: binder: support multiple context managers.
android: binder: deal with contexts in debugfs.
android: binder: support multiple /dev instances.
android: binder: refactor binder_transact()
android: binder: add extra size to allocator.
android: binder: support for scatter-gather.
android: binder: support for file-descriptor arrays.

 drivers/android/Kconfig             |   12 +
 drivers/android/binder.c            | 1021 +++++++++++++++++++++++++++--------
 include/uapi/linux/android/binder.h |  103 +++-
 3 files changed, 910 insertions(+), 226 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020