函数逻辑报告 |
Source Code:fs\inode.c |
Create Date:2022-07-29 10:38:10 |
Last Modify:2020-03-18 19:19:59 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:struct timespec64 timestamp_truncate(struct timespec64 t, struct inode *inode)
返回类型:struct timespec64
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timespec64 | t | |
struct inode * | inode |
2191 | gran等于s_time_gran |
2194 | 如果此条件成立可能性小(为编译器优化)( seconds == s_time_max || seconds == s_time_min)则 nanoseconds 等于0 |
2198 | 如果gran恒等于1则否则如果gran恒等于NSEC_PER_SEC则 |
2201 | nanoseconds 等于0 |
2202 | 否则如果gran大于1且gran小于NSEC_PER_SEC则 nanoseconds 减等于 nanoseconds 取模gran |
2206 | 返回:t |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |