函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\shmem.c Create Date:2022-07-27 15:45:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:shmem_zero_setup - setup a shared anonymous mapping*@vma: the vma to be mmapped is prepared by do_mmap_pgoff

函数原型:int shmem_zero_setup(struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
4174  size等于The first byte after our end addresswithin vm_mm. Our start address within vm_mm.
4182  file等于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
4183  如果是错误则返回:错误
4186  如果File we map to (can be NULL). fput(File we map to (can be NULL). )
4188  File we map to (can be NULL). 等于file
4189  Function pointers to deal with this struct. 等于shmem_vm_ops
4191  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_TRANSPARENT_HUGE_PAGECACHE)且Our start address within vm_mm. HPAGE_PMD_MASK的反按位与HPAGE_PMD_MASK的值小于The first byte after our end addresswithin vm_mm. 按位与HPAGE_PMD_MASK的值则
4194  khugepaged_enter(vma, Flags, see mm.h. )
4197  返回:0
调用者
名称描述
mmap_region