binder in kernel:
kernel/ include/linux/binder.h
kernel/drivers/android/binder.c
in android, binder is in the view of server--client.
the server provides services for client.
first the cameraService should regist his service to ServiceManager.
so each time android bootup, regist in
Main_mediaserver.cpp (frameworks/base/media/mediaserver)
-->
CameraService::instantiate();
-->
and then, client should connect to server, asking the services.
the following code is what server does.
with this handle, client do anything service the server provides.
ref:
http://blog.csdn.net/chenweiwu1986/archive/2009/09/10/4540437.aspx