Re: parport and char driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok, so i have to do something like this, because the kernel 
get information when I use register_chrdev?
  struct file *f_file;
  struct inode *f_inode;
  struct file_operations *f_pport;
  pport = register_chrdev(PPORT_MAJOR_NUMBER, PPORT_CONST_NAME, f_pport);
  f_pport->open(f_inode,f_file);

How i can remove module using rmmod when i get segmation fault
during the loading?

Thanks to all,

Claudio


Scrive mohanlal jangir <mohanlal@samsung.com>:

> Pointers to inode and file shall be given by kernel to your function. You
> can straight away use them.
> 
> Regards
> Mohanlal
> 



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux