Adding to struct file

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

 



Hi,

I need to keep some information (just a number) for every open file in the system and thought that this could be most easily done by adding an integer field to the end of struct file. However, when doing this, I get all kinds of weird bugs with modules and then the kernel dies. Any suggestions to why this could be happening? I've had this problem in the past when adding things to structs, and I always add it to the end.
I would be glad about anything you could think of.


Thanks,
Can


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