binder_module.h File Reference

#include <support/TypeConstants.h>
#include <linux/types.h>
#include <asm/ioctl.h>

Go to the source code of this file.

Classes

struct  binder_transaction_data
struct  binder_version
struct  binder_wakeup_time
struct  binder_write_read
struct  flat_binder_object

Defines

#define BINDER_CURRENT_PROTOCOL_VERSION   4
#define BINDER_IOC_MAGIC   'b'
#define BINDER_IOC_MAXNR   9
#define BINDER_SET_CONTEXT_MGR   _IOW(BINDER_IOC_MAGIC, 7, int)
#define BINDER_SET_IDLE_PRIORITY   _IOW(BINDER_IOC_MAGIC, 6, int)
#define BINDER_SET_IDLE_TIMEOUT   _IOW(BINDER_IOC_MAGIC, 3, bigtime_t)
#define BINDER_SET_MAX_THREADS   _IOW(BINDER_IOC_MAGIC, 5, size_t)
#define BINDER_SET_REPLY_TIMEOUT   _IOW(BINDER_IOC_MAGIC, 4, bigtime_t)
#define BINDER_SET_WAKEUP_TIME   _IOW(BINDER_IOC_MAGIC, 2, binder_wakeup_time_t)
#define BINDER_THREAD_EXIT   _IOW(BINDER_IOC_MAGIC, 8, int)
#define BINDER_VERSION   _IOWR(BINDER_IOC_MAGIC, 9, binder_version_t)
#define BINDER_WRITE_READ   _IOWR(BINDER_IOC_MAGIC, 1, binder_write_read_t)

Typedefs

typedef int64_t bigtime_t
typedef binder_transaction_data binder_transaction_data_t
typedef binder_version binder_version_t
typedef binder_wakeup_time binder_wakeup_time_t
typedef binder_write_read binder_write_read_t
typedef flat_binder_object flat_binder_object_t

Enumerations

enum  {
  kPackedLargeBinderType = B_PACK_LARGE_TYPE(B_BINDER_TYPE), kPackedLargeBinderWeakType = B_PACK_LARGE_TYPE(B_BINDER_WEAK_TYPE), kPackedLargeBinderHandleType = B_PACK_LARGE_TYPE(B_BINDER_HANDLE_TYPE), kPackedLargeBinderWeakHandleType = B_PACK_LARGE_TYPE(B_BINDER_WEAK_HANDLE_TYPE),
  kPackedLargeBinderNodeType = B_PACK_LARGE_TYPE(B_BINDER_NODE_TYPE), kPackedLargeBinderWeakNodeType = B_PACK_LARGE_TYPE(B_BINDER_WEAK_NODE_TYPE)
}
enum  BinderDriverCommandProtocol {
  bcNOOP = 0, bcTRANSACTION, bcREPLY, bcACQUIRE_RESULT,
  bcFREE_BUFFER, bcTRANSACTION_COMPLETE, bcINCREFS, bcACQUIRE,
  bcRELEASE, bcDECREFS, bcINCREFS_DONE, bcACQUIRE_DONE,
  bcATTEMPT_ACQUIRE, bcRETRIEVE_ROOT_OBJECT, bcSET_THREAD_ENTRY, bcREGISTER_LOOPER,
  bcENTER_LOOPER, bcEXIT_LOOPER, bcSYNC, bcSTOP_PROCESS,
  bcSTOP_SELF
}
enum  BinderDriverReturnProtocol {
  brERROR = -1, brOK = 0, brTIMEOUT, brWAKEUP,
  brTRANSACTION, brREPLY, brACQUIRE_RESULT, brDEAD_REPLY,
  brTRANSACTION_COMPLETE, brINCREFS, brACQUIRE, brRELEASE,
  brDECREFS, brATTEMPT_ACQUIRE, brEVENT_OCCURRED, brNOOP,
  brSPAWN_LOOPER, brFINISHED
}
enum  transaction_flags { tfInline = 0x01, tfSynchronous = 0x02, tfRootObject = 0x04, tfStatusCode = 0x08 }


Define Documentation

#define BINDER_CURRENT_PROTOCOL_VERSION   4
 

#define BINDER_IOC_MAGIC   'b'
 

#define BINDER_IOC_MAXNR   9
 

#define BINDER_SET_CONTEXT_MGR   _IOW(BINDER_IOC_MAGIC, 7, int)
 

#define BINDER_SET_IDLE_PRIORITY   _IOW(BINDER_IOC_MAGIC, 6, int)
 

#define BINDER_SET_IDLE_TIMEOUT   _IOW(BINDER_IOC_MAGIC, 3, bigtime_t)
 

#define BINDER_SET_MAX_THREADS   _IOW(BINDER_IOC_MAGIC, 5, size_t)
 

#define BINDER_SET_REPLY_TIMEOUT   _IOW(BINDER_IOC_MAGIC, 4, bigtime_t)
 

#define BINDER_SET_WAKEUP_TIME   _IOW(BINDER_IOC_MAGIC, 2, binder_wakeup_time_t)
 

#define BINDER_THREAD_EXIT   _IOW(BINDER_IOC_MAGIC, 8, int)
 

#define BINDER_VERSION   _IOWR(BINDER_IOC_MAGIC, 9, binder_version_t)
 

#define BINDER_WRITE_READ   _IOWR(BINDER_IOC_MAGIC, 1, binder_write_read_t)
 


Typedef Documentation

typedef int64_t bigtime_t
 

typedef struct binder_transaction_data binder_transaction_data_t
 

typedef struct binder_version binder_version_t
 

typedef struct binder_wakeup_time binder_wakeup_time_t
 

typedef struct binder_write_read binder_write_read_t
 

typedef struct flat_binder_object flat_binder_object_t
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
kPackedLargeBinderType 
kPackedLargeBinderWeakType 
kPackedLargeBinderHandleType 
kPackedLargeBinderWeakHandleType 
kPackedLargeBinderNodeType 
kPackedLargeBinderWeakNodeType 

enum BinderDriverCommandProtocol
 

Enumerator:
bcNOOP 
bcTRANSACTION 
bcREPLY 
bcACQUIRE_RESULT 
bcFREE_BUFFER 
bcTRANSACTION_COMPLETE 
bcINCREFS 
bcACQUIRE 
bcRELEASE 
bcDECREFS 
bcINCREFS_DONE 
bcACQUIRE_DONE 
bcATTEMPT_ACQUIRE 
bcRETRIEVE_ROOT_OBJECT 
bcSET_THREAD_ENTRY 
bcREGISTER_LOOPER 
bcENTER_LOOPER 
bcEXIT_LOOPER 
bcSYNC 
bcSTOP_PROCESS 
bcSTOP_SELF 

enum BinderDriverReturnProtocol
 

Enumerator:
brERROR 
brOK 
brTIMEOUT 
brWAKEUP 
brTRANSACTION 
brREPLY 
brACQUIRE_RESULT 
brDEAD_REPLY 
brTRANSACTION_COMPLETE 
brINCREFS 
brACQUIRE 
brRELEASE 
brDECREFS 
brATTEMPT_ACQUIRE 
brEVENT_OCCURRED 
brNOOP 
brSPAWN_LOOPER 
brFINISHED 

enum transaction_flags
 

Enumerator:
tfInline 
tfSynchronous 
tfRootObject 
tfStatusCode