Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\shmem.c Create Date:2022-07-28 14:21:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:shmem_zero_setup - setup a shared anonymous mapping*@vma: the vma to be mmapped is prepared by do_mmap_pgoff

Proto:int shmem_zero_setup(struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(file) Then Return PTR_ERR(file)
4186  If File we map to (can be NULL). Then 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  If 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) Then
4194  khugepaged_enter(vma, Flags, see mm.h. )
4197  Return 0
Caller
NameDescribe
mmap_region