程式如下:
http://codepad.org/puqwVR0K
疑問是程式為何不會跑到adc_ioctl這個函式裡頭
我把driver裡的read函式用adc_ioctl取代
static const struct file_operations adc_fops = {
.owner = THIS_MODULE,
.open = adc_open,
.ioctl = adc_ioctl,
.read = adc_read,
.release = adc_release,
};
有call到adc_ioctl副函式可是沒跑進去>"<
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.37.136.24