Hi,
I'm new to kernel hacking, I'm trying to devel a kernel module to use parallel port with simple led because i do in user-space, but now i want to do that in kernel-space. I start to read the linux device driver 2nd edition and I'm ok where i register a char device, but the book show me the file_operations struct that has many pointers functions this is what i do: struct file_operations *f_pport;
pport = register_chrdev(PPORT_MAJOR_NUMBER, PPORT_CONST_NAME, f_pport); now if i want to open i have to do something like
this?
f_pport->open(struct inode *, struct file *); and in the book i don't understand which
information i have
to give to struct inode and struct file. Thanks
Claudio
|