In linux kernel v4.19.3
In my module, I need to get the inode last modification time in nanosecondes and not in seconds, but it always returns 0.
struct timespec64 i_mtime;
for example in this code :
pr_info("nsec = %ld - sec = %lld\n",inode->i_mtime.tv_nsec,inode->i_mtime.tv_sec);
this code returns :
nsec = 0 - sec = 1593096577
Any idea ?