Scroll to navigation

CURRENT_TIME(9) The Linux VFS CURRENT_TIME(9)

NAME

current_time - Return FS time

SYNOPSIS

struct timespec current_time(struct inode * inode);

ARGUMENTS

struct inode * 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

July 2017 Kernel Hackers Manual 4.11