SysTutorials

Linux Manual Pages › Section 9

current_time(9)

current_time - Return FS time

Synopsis

struct timespec current_time(struct inode *inode);

Arguments

inode

inode.

Description

Return the current time truncated to the time granularity supported by the fs.

Note that inode and inode->sb cannot be NULL. Otherwise, the function warns and returns time without truncation.

Copyright