linux驱动的异步通知(kill_fasync,fasync)---- 驱动程序向应用程序发送信号
应用程序#include#include#include#include#include#include#include#include#include/*fifthdrvtest*/intfd;//信号处理函数voidmy_signal_fun(intsignum){unsignedcharkey_val;read(fd,&key_val,1);printf("key_val:0x%x\n",k