RE: get file attr from kernel space

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

 



 Hi,
you don't need to use the inode->i_op->getattr function.
Since you already have access to the inode structure,
then the i_iatime value is accesible from there:

if (inode->i_atime)
    printk("%ld\n",inode->i_atime); 

else printk("didn't get i_atime\n");

Furthermore the gettattr function is not implemented at
all.
(pls someone correct this.)

regds,
- Alberto
--
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