aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_binder.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-21 10:30:21 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-21 15:05:21 +0200
commit551fb3f0cdc7f2b2baa1221b06c2c21f6dd95797 (patch)
tree6cb2142e4b4543d94ba01027d9a91910e095c49a /sys/linux/dev_binder.txt
parentcb750656d058a944d71e9fa3559c99fa5cb02772 (diff)
sys/linux: add new binder ioctl's
Add descriptions of the new BINDER_FREEZE, BINDER_GET_FROZEN_INFO and BINDER_ENABLE_ONEWAY_SPAM_DETECTION. See: https://elixir.bootlin.com/linux/v5.15-rc6/source/include/uapi/linux/android/binder.h#L249
Diffstat (limited to 'sys/linux/dev_binder.txt')
-rw-r--r--sys/linux/dev_binder.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/linux/dev_binder.txt b/sys/linux/dev_binder.txt
index afd595fcf..b7b50f655 100644
--- a/sys/linux/dev_binder.txt
+++ b/sys/linux/dev_binder.txt
@@ -33,6 +33,9 @@ ioctl$BINDER_THREAD_EXIT(fd fd_binder, cmd const[BINDER_THREAD_EXIT], arg const[
ioctl$BINDER_GET_NODE_DEBUG_INFO(fd fd_binder, cmd const[BINDER_GET_NODE_DEBUG_INFO], arg ptr[inout, binder_node_debug_info])
ioctl$BINDER_WRITE_READ(fd fd_binder, cmd const[BINDER_WRITE_READ], arg ptr[in, binder_write_read])
ioctl$BINDER_GET_NODE_INFO_FOR_REF(fd fd_binder, cmd const[BINDER_GET_NODE_INFO_FOR_REF], arg ptr[in, binder_node_info_for_ref])
+ioctl$BINDER_FREEZE(fd fd_binder, cmd const[BINDER_FREEZE], arg ptr[in, binder_freeze_info])
+ioctl$BINDER_GET_FROZEN_INFO(fd fd_binder, cmd const[BINDER_GET_FROZEN_INFO], arg ptr[in, binder_frozen_status_info])
+ioctl$BINDER_ENABLE_ONEWAY_SPAM_DETECTION(fd fd_binder, cmd const[BINDER_ENABLE_ONEWAY_SPAM_DETECTION], arg ptr[in, bool32])
openat$binder_debug(fd const[AT_FDCWD], file ptr[in, string[binder_debug_file]], flags const[O_RDONLY], mode const[0]) fd
@@ -41,6 +44,18 @@ binder_debug_file = "/sys/kernel/debug/binder/failed_transaction_log", "/sys/ker
binder_open_flags = O_RDWR, O_NONBLOCK
_ = __NR_mmap2
+binder_freeze_info {
+ pid pid
+ enable bool32
+ timeout_ms int32
+}
+
+binder_frozen_status_info {
+ pid pid
+ sync_recv int32 (out)
+ async_recv int32 (out)
+}
+
binder_node_debug_info {
ptr binder_node
cookie const[0, int64]
@@ -138,7 +153,7 @@ binder_offsets {
off2 offsetof[binder_transaction_data:buffer:obj2, int64]
}
-binder_transaction_flags = TF_ONE_WAY, TF_ACCEPT_FDS
+binder_transaction_flags = TF_ONE_WAY, TF_ACCEPT_FDS, TF_CLEAR_BUF
binder_object [
flat flat_binder_object