Linux poll机制简析
使用POLL机制代替Linux输入子系统(input subsystem)之按键输入和LED控制中的异步通知,实现同样的效果。1.代码只简单修改input_subsys_test.c, input_subsys_drv.c不变input_subsys_test.c#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <stdio....