linux的系统调用是如下格式:
int (*open) (struct inode *, struct file *)而且设备驱动程序中的file_operations中的open对应函数的参数列表也是 (struct inode *, struct file *)
而在研究一个小小的驱动测试程序时,系统调用形式如下:
fd=open("/dev/drvtest",O_RDWR);
这个有点不明白,"/dev/drvtest"是上边的struct inode *参数吗?,
上边的O_RDWR是一个struct file *参数吗?
谢谢!