OSDN Git Service

binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl.
authorMartijn Coenen <maco@android.com>
Fri, 7 Sep 2018 13:38:37 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:22:48 +0000 (15:22 +0200)
commitb7e6a8961b5d6dd3fc535970e65d497d868bb49f
tree97e6dda19380e653059e478ba9102963132df713
parent6b6642dadd685af885367d6e30f18553e2a23b22
binder: Add BINDER_GET_NODE_INFO_FOR_REF ioctl.

This allows the context manager to retrieve information about nodes
that it holds a reference to, such as the current number of
references to those nodes.

Such information can for example be used to determine whether the
servicemanager is the only process holding a reference to a node.
This information can then be passed on to the process holding the
node, which can in turn decide whether it wants to shut down to
reduce resource usage.

Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/android/binder.c
include/uapi/linux/android/binder.h