]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8164ba8810799399c919bdb24618b627e4867057
tree97e6dda19380e653059e478ba9102963132df713
parent1f68cc46595bea78b71a387076967fa55c884893
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