Function report |
Source Code:fs\utimes.c |
Create Date:2022-07-28 20:11:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:utimes_common
Proto:static int utimes_common(const struct path *path, struct timespec64 *times)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct path * | path | |
| struct timespec64 * | times |
| 24 | struct inode * delegated_inode = NULL |
| 30 | If times && nanoseconds == UTIME_NOW && nanoseconds == UTIME_NOW Then times = NULL |
| 34 | ia_valid = ATTR_CTIME | ATTR_MTIME | ATTR_ATIME |
| 35 | If times Then |
| 36 | If nanoseconds == UTIME_OMIT Then ia_valid &= ~ATTR_ATIME |
| 38 | Else if nanoseconds != UTIME_NOW Then |
| 40 | ia_valid |= ATTR_ATIME_SET |
| 43 | If nanoseconds == UTIME_OMIT Then ia_valid &= ~ATTR_MTIME |
| 45 | Else if nanoseconds != UTIME_NOW Then |
| 47 | ia_valid |= ATTR_MTIME_SET |
| 54 | ia_valid |= ATTR_TIMES_SET |
| 55 | Else |
| 56 | ia_valid |= ATTR_TOUCH |
| 58 | retry_deleg : |
| 59 | inode_lock(inode) |
| 61 | inode_unlock(inode) |
| 62 | If delegated_inode Then |
| 63 | error = break_deleg_wait( & delegated_inode) |
| 64 | If Not error Then Go to retry_deleg |
| 69 | out : |
| 70 | Return error |
| Name | Describe |
|---|---|
| do_utimes | do_utimes - change times on filename or file descriptor*@dfd: open file descriptor, -1 or AT_FDCWD*@filename: path name or NULL*@times: new times or NULL*@flags: zero or more flags (only AT_SYMLINK_NOFOLLOW for the moment)* If filename is NULL and dfd |
| 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 |