健康数据(epoll, uevent, timerfd, binder)相关的技术
发布时间
阅读量:
阅读量
healthd
epoll事件类型分类
- uevent //由内核触发的事件通知
- alarmtimer //用于定时触发更新操作
- binder //实现客户端通信机制
static int healthd_init() {
epollfd = epoll_create(MAX_EPOLL_EVENTS);
if (epollfd == -1) {
KLOG_ERROR(LOG_TAG,
"epoll_create failed; errno=%d\n",
errno);
return -1;
}
healthd_board_init(&healthd_config);
healthd_mode_ops->init(&healthd_config);
wakealarm_init(); //alarm
uevent_init(); //uevent
gBatteryMonitor = new BatteryMonitor(); //binder
g
全部评论 (0)
还没有任何评论哟~
