Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
binder.h File Reference
#include <linux/ioctl.h>

Go to the source code of this file.

Data Structures

struct  flat_binder_object
 
struct  binder_write_read
 
struct  binder_version
 
struct  binder_transaction_data
 
struct  binder_ptr_cookie
 
struct  binder_pri_desc
 
struct  binder_pri_ptr_cookie
 

Macros

#define B_PACK_CHARS(c1, c2, c3, c4)   ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4))
 
#define B_TYPE_LARGE   0x85
 
#define BINDER_CURRENT_PROTOCOL_VERSION   7
 
#define BINDER_WRITE_READ   _IOWR('b', 1, struct binder_write_read)
 
#define BINDER_SET_IDLE_TIMEOUT   _IOW('b', 3, int64_t)
 
#define BINDER_SET_MAX_THREADS   _IOW('b', 5, size_t)
 
#define BINDER_SET_IDLE_PRIORITY   _IOW('b', 6, int)
 
#define BINDER_SET_CONTEXT_MGR   _IOW('b', 7, int)
 
#define BINDER_THREAD_EXIT   _IOW('b', 8, int)
 
#define BINDER_VERSION   _IOWR('b', 9, struct binder_version)
 

Enumerations

enum  {
  BINDER_TYPE_BINDER = B_PACK_CHARS('s', 'b', '*', B_TYPE_LARGE), BINDER_TYPE_WEAK_BINDER = B_PACK_CHARS('w', 'b', '*', B_TYPE_LARGE), BINDER_TYPE_HANDLE = B_PACK_CHARS('s', 'h', '*', B_TYPE_LARGE), BINDER_TYPE_WEAK_HANDLE = B_PACK_CHARS('w', 'h', '*', B_TYPE_LARGE),
  BINDER_TYPE_FD = B_PACK_CHARS('f', 'd', '*', B_TYPE_LARGE)
}
 
enum  { FLAT_BINDER_FLAG_PRIORITY_MASK = 0xff, FLAT_BINDER_FLAG_ACCEPTS_FDS = 0x100 }
 
enum  transaction_flags { TF_ONE_WAY = 0x01, TF_ROOT_OBJECT = 0x04, TF_STATUS_CODE = 0x08, TF_ACCEPT_FDS = 0x10 }
 
enum  BinderDriverReturnProtocol {
  BR_ERROR = _IOR('r', 0, int), BR_OK = _IO('r', 1), BR_TRANSACTION = _IOR('r', 2, struct binder_transaction_data), BR_REPLY = _IOR('r', 3, struct binder_transaction_data),
  BR_ACQUIRE_RESULT = _IOR('r', 4, int), BR_DEAD_REPLY = _IO('r', 5), BR_TRANSACTION_COMPLETE = _IO('r', 6), BR_INCREFS = _IOR('r', 7, struct binder_ptr_cookie),
  BR_ACQUIRE = _IOR('r', 8, struct binder_ptr_cookie), BR_RELEASE = _IOR('r', 9, struct binder_ptr_cookie), BR_DECREFS = _IOR('r', 10, struct binder_ptr_cookie), BR_ATTEMPT_ACQUIRE = _IOR('r', 11, struct binder_pri_ptr_cookie),
  BR_NOOP = _IO('r', 12), BR_SPAWN_LOOPER = _IO('r', 13), BR_FINISHED = _IO('r', 14), BR_DEAD_BINDER = _IOR('r', 15, void *),
  BR_CLEAR_DEATH_NOTIFICATION_DONE = _IOR('r', 16, void *), BR_FAILED_REPLY = _IO('r', 17)
}
 
enum  BinderDriverCommandProtocol {
  BC_TRANSACTION = _IOW('c', 0, struct binder_transaction_data), BC_REPLY = _IOW('c', 1, struct binder_transaction_data), BC_ACQUIRE_RESULT = _IOW('c', 2, int), BC_FREE_BUFFER = _IOW('c', 3, int),
  BC_INCREFS = _IOW('c', 4, int), BC_ACQUIRE = _IOW('c', 5, int), BC_RELEASE = _IOW('c', 6, int), BC_DECREFS = _IOW('c', 7, int),
  BC_INCREFS_DONE = _IOW('c', 8, struct binder_ptr_cookie), BC_ACQUIRE_DONE = _IOW('c', 9, struct binder_ptr_cookie), BC_ATTEMPT_ACQUIRE = _IOW('c', 10, struct binder_pri_desc), BC_REGISTER_LOOPER = _IO('c', 11),
  BC_ENTER_LOOPER = _IO('c', 12), BC_EXIT_LOOPER = _IO('c', 13), BC_REQUEST_DEATH_NOTIFICATION = _IOW('c', 14, struct binder_ptr_cookie), BC_CLEAR_DEATH_NOTIFICATION = _IOW('c', 15, struct binder_ptr_cookie),
  BC_DEAD_BINDER_DONE = _IOW('c', 16, void *)
}
 

Macro Definition Documentation

#define B_PACK_CHARS (   c1,
  c2,
  c3,
  c4 
)    ((((c1)<<24)) | (((c2)<<16)) | (((c3)<<8)) | (c4))

Definition at line 25 of file binder.h.

#define B_TYPE_LARGE   0x85

Definition at line 27 of file binder.h.

#define BINDER_CURRENT_PROTOCOL_VERSION   7

Definition at line 85 of file binder.h.

#define BINDER_SET_CONTEXT_MGR   _IOW('b', 7, int)

Definition at line 91 of file binder.h.

#define BINDER_SET_IDLE_PRIORITY   _IOW('b', 6, int)

Definition at line 90 of file binder.h.

#define BINDER_SET_IDLE_TIMEOUT   _IOW('b', 3, int64_t)

Definition at line 88 of file binder.h.

#define BINDER_SET_MAX_THREADS   _IOW('b', 5, size_t)

Definition at line 89 of file binder.h.

#define BINDER_THREAD_EXIT   _IOW('b', 8, int)

Definition at line 92 of file binder.h.

#define BINDER_VERSION   _IOWR('b', 9, struct binder_version)

Definition at line 93 of file binder.h.

#define BINDER_WRITE_READ   _IOWR('b', 1, struct binder_write_read)

Definition at line 87 of file binder.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
BINDER_TYPE_BINDER 
BINDER_TYPE_WEAK_BINDER 
BINDER_TYPE_HANDLE 
BINDER_TYPE_WEAK_HANDLE 
BINDER_TYPE_FD 

Definition at line 29 of file binder.h.

anonymous enum
Enumerator:
FLAT_BINDER_FLAG_PRIORITY_MASK 
FLAT_BINDER_FLAG_ACCEPTS_FDS 

Definition at line 37 of file binder.h.

Enumerator:
BC_TRANSACTION 
BC_REPLY 
BC_ACQUIRE_RESULT 
BC_FREE_BUFFER 
BC_INCREFS 
BC_ACQUIRE 
BC_RELEASE 
BC_DECREFS 
BC_INCREFS_DONE 
BC_ACQUIRE_DONE 
BC_ATTEMPT_ACQUIRE 
BC_REGISTER_LOOPER 
BC_ENTER_LOOPER 
BC_EXIT_LOOPER 
BC_REQUEST_DEATH_NOTIFICATION 
BC_CLEAR_DEATH_NOTIFICATION 
BC_DEAD_BINDER_DONE 

Definition at line 254 of file binder.h.

Enumerator:
BR_ERROR 
BR_OK 
BR_TRANSACTION 
BR_REPLY 
BR_ACQUIRE_RESULT 
BR_DEAD_REPLY 
BR_TRANSACTION_COMPLETE 
BR_INCREFS 
BR_ACQUIRE 
BR_RELEASE 
BR_DECREFS 
BR_ATTEMPT_ACQUIRE 
BR_NOOP 
BR_SPAWN_LOOPER 
BR_FINISHED 
BR_DEAD_BINDER 
BR_CLEAR_DEATH_NOTIFICATION_DONE 
BR_FAILED_REPLY 

Definition at line 166 of file binder.h.

Enumerator:
TF_ONE_WAY 
TF_ROOT_OBJECT 
TF_STATUS_CODE 
TF_ACCEPT_FDS 

Definition at line 110 of file binder.h.