'\" t .\" Title: current_time .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "CURRENT_TIME" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" current_time \- Return FS time .SH "SYNOPSIS" .HP \w'struct\ timespec\ current_time('u .BI "struct timespec current_time(struct\ inode\ *\ " "inode" ");" .SH "ARGUMENTS" .PP \fIstruct inode * inode\fR .RS 4 inode\&. .RE .SH "DESCRIPTION" .PP Return the current time truncated to the time granularity supported by the fs\&. .PP Note that inode and inode\->sb cannot be NULL\&. Otherwise, the function warns and returns time without truncation\&. .SH "COPYRIGHT" .br