函数逻辑报告 |
Source Code:security\apparmor\apparmorfs.c |
Create Date:2022-07-27 21:21:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:aafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
函数原型:static struct dentry *aafs_create(const char *name, umode_t mode, struct dentry *parent, void *data, void *link, const struct file_operations *fops, const struct inode_operations *iops)
返回类型:struct dentry
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | name | |
| umode_t | mode | |
| struct dentry * | parent | |
| void * | data | |
| void * | link | |
| const struct file_operations * | fops | |
| const struct inode_operations * | iops |
| 276 | error等于simple_pin_fs( & aafs_ops, & aafs_mnt, & aafs_count) |
| 280 | dir等于获得目录项的索引节点 |
| 282 | inode_lock(dir) |
| 283 | dentry等于lookup_one_len(name, parent, strlen - Find the length of a string*@s: The string to be sized) |
| 284 | 如果是错误则 |
| 291 | 转到:fail_dentry |
| 295 | 如果error则转到:fail_dentry |
| 297 | inode_unlock(dir) |
| 299 | 返回:dentry |
| 301 | fail_dentry : |
| 304 | fail_lock : |
| 305 | inode_unlock(dir) |
| 306 | simple_release_fs( & aafs_mnt, & aafs_count) |
| 308 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| aafs_create_file | aafs_create_file - create a file in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode |
| aafs_create_dir | aafs_create_dir - create a directory in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry* see aafs_create |
| aafs_create_symlink | aafs_create_symlink - create a symlink in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry*@target: if symlink, symlink target string*@private: private data*@iops: struct of inode_operations that should |
| __aafs_ns_mkdir_entries | assumes cleanup in caller |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |