aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/linux/binder.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/linux/binder.h')
-rw-r--r--original/uapi/linux/binder.h30
1 files changed, 17 insertions, 13 deletions
diff --git a/original/uapi/linux/binder.h b/original/uapi/linux/binder.h
index 4098c50..904adb7 100644
--- a/original/uapi/linux/binder.h
+++ b/original/uapi/linux/binder.h
@@ -56,8 +56,8 @@ typedef __u64 binder_uintptr_t;
*/
struct flat_binder_object {
/* 8 bytes for large_flat_header. */
- __u32 type;
- __u32 flags;
+ __u32 type;
+ __u32 flags;
/* 8 bytes of data. */
union {
@@ -86,7 +86,7 @@ struct binder_write_read {
/* Use with BINDER_VERSION, driver fills in fields. */
struct binder_version {
/* driver protocol version -- increment with incompatible change */
- __s32 protocol_version;
+ __s32 protocol_version;
};
/* This is the current protocol version. */
@@ -97,11 +97,11 @@ struct binder_version {
#endif
#define BINDER_WRITE_READ _IOWR('b', 1, struct binder_write_read)
-#define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
-#define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
-#define BINDER_SET_IDLE_PRIORITY _IOW('b', 6, __s32)
-#define BINDER_SET_CONTEXT_MGR _IOW('b', 7, __s32)
-#define BINDER_THREAD_EXIT _IOW('b', 8, __s32)
+#define BINDER_SET_IDLE_TIMEOUT _IOW('b', 3, __s64)
+#define BINDER_SET_MAX_THREADS _IOW('b', 5, __u32)
+#define BINDER_SET_IDLE_PRIORITY _IOW('b', 6, __s32)
+#define BINDER_SET_CONTEXT_MGR _IOW('b', 7, __s32)
+#define BINDER_THREAD_EXIT _IOW('b', 8, __s32)
#define BINDER_VERSION _IOWR('b', 9, struct binder_version)
/*
@@ -131,14 +131,16 @@ struct binder_transaction_data {
* identifying the target and contents of the transaction.
*/
union {
- __u32 handle; /* target descriptor of command transaction */
- binder_uintptr_t ptr; /* target descriptor of return transaction */
+ /* target descriptor of command transaction */
+ __u32 handle;
+ /* target descriptor of return transaction */
+ binder_uintptr_t ptr;
} target;
binder_uintptr_t cookie; /* target object cookie */
__u32 code; /* transaction command */
/* General information about the transaction. */
- __u32 flags;
+ __u32 flags;
pid_t sender_pid;
uid_t sender_euid;
binder_size_t data_size; /* number of bytes of data */
@@ -325,13 +327,15 @@ enum binder_driver_command_protocol {
* of looping threads it has available.
*/
- BC_REQUEST_DEATH_NOTIFICATION = _IOW('c', 14, struct binder_handle_cookie),
+ BC_REQUEST_DEATH_NOTIFICATION = _IOW('c', 14,
+ struct binder_handle_cookie),
/*
* int: handle
* void *: cookie
*/
- BC_CLEAR_DEATH_NOTIFICATION = _IOW('c', 15, struct binder_handle_cookie),
+ BC_CLEAR_DEATH_NOTIFICATION = _IOW('c', 15,
+ struct binder_handle_cookie),
/*
* int: handle
* void *: cookie