QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1989|回复: 0

关于ioctl的问题

[复制链接]
发表于 2006-4-7 14:33:03 | 显示全部楼层 |阅读模式
ioctl在用户空间原型是
int ioctl(int fd,unsigned long cmd,...);
而在内核空间原型是
int (*ioctl)(struct inode *inode,struct file *filp,unsigned int cmd, unsigned long arg);
我搞不懂了,这样用户空间调用的ioctl的参数怎么转为内核空间ioctl的参数
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-5 03:43 , Processed in 0.067463 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表