摘要:
一、内核原型(linux2.6.28-7) long (*compat_ioctl)(struct tty_struct *tty, struct file * file, unsigned int cmd, unsigned long arg); implement ioctl processin 阅读全文
posted @ 2016-12-02 10:47
knightsoul
阅读(3573)
评论(0)
推荐(0)
摘要:
http://www.educity.cn/Linux/1242138.html 最近做的项目跟Linux内核的关系比较大,我们的项目需要在用户态触发一些内核态的代码运行。众所周知,内核态的代码是不能直接被用户态代码调用的,用户态代码触发内核态代码的必须要经过系统调用。 为什么选择ioctl 那么该 阅读全文
posted @ 2016-12-02 10:46
knightsoul
阅读(3132)
评论(0)
推荐(0)

浙公网安备 33010602011771号