| Function report | 
| Source Code: fs\inode.c | Create Date:2022-07-28 20:08:00 | 
| Last Modify:2020-03-18 19:19:59 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mestamp_truncate - Truncate timespec to a granularity*@t: Timespec*@inode: inode being updated* Truncate a timespec to the granularity supported by the fs* containing the inode. Always rounds down. gran must
Proto:struct timespec64 timestamp_truncate(struct timespec64 t, struct inode *inode)
Type:struct timespec64
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct timespec64 | t | |
| struct inode * | inode | 
| 2191 | gran = s_time_gran | 
| 2194 | If Value for the false possibility is greater at compile time( seconds == s_time_max || seconds == s_time_min) Then nanoseconds = 0 | 
| 2198 | If gran == 1 Then Else if gran == NSEC_PER_SEC Then | 
| 2201 | nanoseconds = 0 | 
| 2202 | Else if gran > 1 && gran < NSEC_PER_SEC Then nanoseconds -= nanoseconds % gran | 
| 2206 | Return t | 
| Name | Describe | 
|---|---|
| current_time | rrent_time - Return FS time*@inode: inode.* 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. | 
| notify_change | y_change - modify attributes of a filesytem object*@dentry: object affected*@attr: new attributes*@delegated_inode: returns inode, if the inode is delegated* The caller must hold the i_mutex on the affected object | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |