| 函数逻辑报告 | 
| Source Code: mm\shmem.c | Create Date:2022-07-27 15:44:57 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:mmon code
函数原型:static struct file *__shmem_file_setup(struct vfsmount *mnt, const char *name, loff_t size, unsigned long flags, unsigned int i_flags)
返回类型:struct file
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct vfsmount * | mnt | |
| const char * | name | |
| loff_t | size | |
| unsigned long | flags | |
| unsigned int | i_flags | 
| 4102 | 如果size小于0或size大于Page cache limit. The filesystems should put that into their s_maxbytes limits, otherwise bad things can happen in VM. 则返回:错误号 | 
| 4105 | 如果shmem_acct_size(flags, size)则返回:错误号 | 
| 4110 | 如果此条件成立可能性小(为编译器优化)(!inode)则 | 
| 4111 | shmem_unacct_size(flags, size) | 
| 4112 | 返回:错误号 | 
| 4116 | clear_nlink(inode) | 
| 4118 | 如果非是错误则res等于alloc_file_pseudo(inode, mnt, name, O_RDWR, & shmem_file_operations) | 
| 4123 | 返回:res | 
| 名称 | 描述 | 
|---|---|
| shmem_kernel_file_setup | shmem_kernel_file_setup - get an unlinked file living in tmpfs which must be* kernel internal. There will be NO LSM permission checks against the* underlying inode. So users of this interface must do LSM checks at a* higher layer | 
| shmem_file_setup | shmem_file_setup - get an unlinked file living in tmpfs*@name: name for dentry (to be seen in /proc/ | 
| shmem_file_setup_with_mnt | shmem_file_setup_with_mnt - get an unlinked file living in tmpfs*@mnt: the tmpfs mount where the file will be created*@name: name for dentry (to be seen in /proc/ | 
| 源代码转换工具 开放的插件接口 | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |