|
@@ -186,6 +186,19 @@ struct binder_version {
|
|
#define BINDER_CURRENT_PROTOCOL_VERSION 8
|
|
#define BINDER_CURRENT_PROTOCOL_VERSION 8
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * Use with BINDER_GET_NODE_DEBUG_INFO, driver reads ptr, writes to all fields.
|
|
|
|
+ * Set ptr to NULL for the first call to get the info for the first node, and
|
|
|
|
+ * then repeat the call passing the previously returned value to get the next
|
|
|
|
+ * nodes. ptr will be 0 when there are no more nodes.
|
|
|
|
+ */
|
|
|
|
+struct binder_node_debug_info {
|
|
|
|
+ binder_uintptr_t ptr;
|
|
|
|
+ binder_uintptr_t cookie;
|
|
|
|
+ __u32 has_strong_ref;
|
|
|
|
+ __u32 has_weak_ref;
|
|
|
|
+};
|
|
|
|
+
|
|
#define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
|
|
#define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
|
|
#define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
|
|
#define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
|
|
#define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
|
|
#define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
|
|
@@ -193,6 +206,7 @@ struct binder_version {
|
|
#define BINDER_SET_CONTEXT_MGR _IOW('b', 7, __s32)
|
|
#define BINDER_SET_CONTEXT_MGR _IOW('b', 7, __s32)
|
|
#define BINDER_THREAD_EXIT _IOW('b', 8, __s32)
|
|
#define BINDER_THREAD_EXIT _IOW('b', 8, __s32)
|
|
#define BINDER_VERSION _IOWR('b', 9, struct binder_version)
|
|
#define BINDER_VERSION _IOWR('b', 9, struct binder_version)
|
|
|
|
+#define BINDER_GET_NODE_DEBUG_INFO _IOWR('b', 11, struct binder_node_debug_info)
|
|
|
|
|
|
/*
|
|
/*
|
|
* NOTE: Two special error codes you should check for when calling
|
|
* NOTE: Two special error codes you should check for when calling
|