函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:declaration for sel_make_class_dirs

函数原型:static struct dentry *sel_make_dir(struct dentry *dir, const char *name, unsigned long *ino)

返回类型:struct dentry

参数:

类型参数名称
struct dentry *dir
const char *name
unsigned long *ino
1865  dentry等于d_alloc_name(dir, name)
1868  如果非dentry则返回:错误号
1871  inode等于sel_make_inode( The root of the dentry tree , S_IFDIR | S_IRUGO | S_IXUGO)
1872  如果非inode
1873  dput(dentry)
1874  返回:错误号
1877  i_op等于simple_dir_inode_operations
1878  rmer ->i_op->default_file_ops 等于simple_dir_operations
1879  Stat data, not accessed from path walking 等于ino先自加
1881  inc_nlink(inode)
1882  添加目录项到哈希队列
1884  inc_nlink(获得目录项的索引节点)
1886  返回:dentry
调用者
名称描述
sel_make_class_dir_entries
sel_make_classes
sel_fill_super