Function report |
Source Code:security\inode.c |
Create Date:2022-07-28 18:41:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto: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)
Type:struct dentry
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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 | If Not parent Then parent = root of the mounted tree |
| 130 | inode_lock(dir) |
| 131 | dentry = lookup_one_len(name, parent, strlen - Find the length of a string*@s: The string to be sized) |
| 140 | inode = obtain an inode |
| 141 | If Not inode Then |
| 148 | i_atime = i_mtime = i_ctime = current_time(inode) |
| 158 | Else |
| 163 | inode_unlock(dir) |
| 164 | Return dentry |
| 166 | out1 : |
| 169 | out : |
| 170 | inode_unlock(dir) |
| 171 | simple_release_fs( & mount, & mount_count) |
| 172 | Return dentry |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |