函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-29 10:40:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:simple_rename

函数原型:int simple_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct inode *old_dir
struct dentry *old_dentry
struct inode *new_dir
struct dentry *new_dentry
unsigned intflags
382  inode等于获得目录项的索引节点
383  they_are_dirs等于d_is_dir(old_dentry)
385  如果flags按位与Don't overwrite target 的反则返回:负EINVAL
388  如果非simple_empty(new_dentry)则返回:负ENOTEMPTY
391  如果d_really_is_positive - Determine if a dentry is really positive (ignoring fallthroughs)*@dentry: The dentry in question* Returns true if the dentry represents a name that maps to an inode* (ie
392  simple_unlink(new_dir, new_dentry)
393  如果they_are_dirs
397  否则如果they_are_dirs
398  drop_nlink - directly drop an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink
399  _nlink - directly increment an inode's link count*@inode: inode* This is a low-level filesystem helper to replace any* direct filesystem manipulation of i_nlink. Currently,* it is only here for parity with dec_nlink().
402  i_ctime等于i_mtime等于i_ctime等于i_mtime等于i_ctime等于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.
405  返回:0