Android binder的内核实现
Userspace 测试程序:
Server端:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
int rv; // Add the service sp<ProcessState> proc(ProcessState::self()); sp<IServiceManager> sm = defaultServiceManager(); if ((rv = sm->addService(serviceName, new AddIntsService(options.serverCPU))) != 0) { cerr << "addService " << serviceName << " failed, rv: " << rv << " errno: " << errno << endl; } // Start threads to handle server work proc->startThreadPool();