Re: devfs_register and private data

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

 



<snip>
> > and in the open call of my driver, i have
> >
> > static int fop_open (struct inode * inode, struct file * filep){
> > 	struct my_privfile_s *info = (struct my_privfile_s *) filep;
> 
> Looks to me like this should be:
> 
> 	struct my_privfile_s *info = (struct my_privfile_s *)
> 						filep->private_data
<snip>
True....I caught that in my code only after posting that :) Still, i had
trouble...I went with Greg's idea to not rely on devfs. 


--
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