History

binder: BINDER_GET_FROZEN_INFO ioctl

User space needs to know if binder transactions occurred to frozen processes. Introduce a new BINDER_GET_FROZEN ioctl and keep track of transactions occurring to frozen proceses.

Marco Ballesio committed 5 years ago

Commit ae28c1b1 parent 95c16f93 files · +68 −0Browse files

Showing the changes to include/uapi/linux/android (1 of 3 files). Show all

Unified · Split

include/uapi/linux/android/binder.h+7−0
@@ -223,6 +223,12 @@ struct binder_freeze_info { · 222 unmodified lines
223223 __u32 timeout_ms;
224224 };
225225
226+struct binder_frozen_status_info {
227+ __u32 pid;
228+ __u32 sync_recv;
229+ __u32 async_recv;
230+};
231+
226232 #define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
227233 #define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
228234 #define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
@@ -234,6 +240,7 @@ struct binder_freeze_info { · 5 unmodified lines
234240 #define BINDER_GET_NODE_INFO_FOR_REF _IOWR('b', 12, struct binder_node_info_for_ref)
235241 #define BINDER_SET_CONTEXT_MGR_EXT _IOW('b', 13, struct flat_binder_object)
236242 #define BINDER_FREEZE _IOW('b', 14, struct binder_freeze_info)
243+#define BINDER_GET_FROZEN_INFO _IOWR('b', 15, struct binder_frozen_status_info)
237244
238245 /*
239246 * NOTE: Two special error codes you should check for when calling