找回密码
 注册
查看: 1799|回复: 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, 2025-2-11 00:09 , Processed in 0.023605 second(s), 15 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

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