函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\apparmorfs.c Create Date:2022-07-27 21:21:43
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:aafs_remove - removes a file or directory from the apparmorfs filesystem*@dentry: dentry of the file/directory/symlink to removed.

函数原型:static void aafs_remove(struct dentry *dentry)

返回类型:void

参数:

类型参数名称
struct dentry *dentry
384  如果非dentry是错误则返回
387  dir等于获得目录项的索引节点
388  inode_lock(dir)
389  如果simple_positive(dentry)则
390  如果d_is_dir(dentry)则simple_rmdir(dir, dentry)
392  否则simple_unlink(dir, dentry)
394  删除目录项
395  dput(dentry)
397  inode_unlock(dir)
398  simple_release_fs( & aafs_mnt, & aafs_count)
调用者
名称描述
remove_rawdata_dents
__aafs_profile_rmdirRequires: @profile->ns->lock held
__aafs_ns_rmdirRequires: @ns->lock held