函数逻辑报告 | 
Source Code:security\inode.c | 
Create Date:2022-07-27 20:14:43 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:securityfs_create_dentry - create a dentry in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file
函数原型:static struct dentry *securityfs_create_dentry(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops, const struct inode_operations *iops)
返回类型:struct dentry
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char * | name | |
| umode_t | mode | |
| struct dentry * | parent | |
| void * | data | |
| const struct file_operations * | fops | |
| const struct inode_operations * | iops | 
| 121 | error等于simple_pin_fs( & fs_type, & mount, & mount_count) | 
| 125 | 如果非parent则parent等于 root of the mounted tree | 
| 128 | dir等于获得目录项的索引节点 | 
| 130 | inode_lock(dir) | 
| 131 | dentry等于lookup_one_len(name, parent, strlen - Find the length of a string*@s: The string to be sized) | 
| 141 | 如果非inode则 | 
| 148 | i_atime等于i_mtime等于i_ctime等于current_time(inode) | 
| 158 | 否则 | 
| 161 | 为目录项建立索引 | 
| 162 | 获得目录项引用 | 
| 163 | inode_unlock(dir) | 
| 164 | 返回:dentry | 
| 166 | out1 : | 
| 169 | out : | 
| 170 | inode_unlock(dir) | 
| 171 | simple_release_fs( & mount, & mount_count) | 
| 172 | 返回:dentry | 
| 名称 | 描述 | 
|---|---|
| securityfs_create_file | securityfs_create_file - create a file in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file | 
| securityfs_create_symlink | securityfs_create_symlink - create a symlink in the securityfs filesystem*@name: a pointer to a string containing the name of the symlink to* create.*@parent: a pointer to the parent dentry for the symlink. This should be a* directory dentry if set | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |