第五章 Binder进程间通信系统

图片发自App

1.Binder驱动程序

成员变量accept_fds用来描述一个Binder实体对象是否可以接收包含有文件描述符的进程间通信数据。如果它的值等于1,就表示可以接收;否则,就表示禁止接收。当一个进程向另外一个进程发送的数据中包含有文件描述符时,Binder驱动程序就会自动在目标进程中打开一个相同的文件。

2. Binder进程间通信库

图片发自App
图片发自App

图片发自App

图片发自App

3. 应用实例

图片发自App

图片发自App

图片发自App

4. Binder对象引用计数技术

图片发自App

图片发自App

图片发自App

5. Binder对象死亡通知机制

注册死亡接收通知

图片发自App

图片发自App

注销死亡接收通知

图片发自App

你可能感兴趣的:(第五章 Binder进程间通信系统)