现象:执行 iwpriv athXXX XXXX , ioctl报错
bugfix:
【 app 】 [ iwpriv.c] print_priv_info ---> [iwlib.c] iw_get_priv_info ---> iw_get_ext(skfd, ifname, SIOCGIWPRIV, &wrq) ---> ioctl(skfd, request, pwrq)
【kernel】上述ioctl实际上通过系统调用进入kernel space,
SYSCALL_DEFINE3(ioctl, unsigned int, fd,unsigned int, cmd, unsigned long, arg)
{
……………………………………………………………………..
error= do_vfs_ioctl(filp, fd, cmd, arg);//调用虚拟文件系统的ioctl
……………………………………………………………..
}
do_vfs_io