Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-28 16:46:56
Last Modify:2020-03-17 22:58:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:shm_mmap

Proto:static int shm_mmap(struct file *file, struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
struct file *file
struct vm_area_struct *vma
489  sfd = shm_file_data(file)
497  ret = __shm_open(vma)
498  If ret Then Return ret
501  ret = call_mmap(file, vma)
502  If ret Then
503  shm_close(vma)
504  Return ret
506  vm_ops = Function pointers to deal with this struct.
508  WARN_ON(!fault)
510  Function pointers to deal with this struct. = shm_vm_ops
511  Return 0