函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\shm.c Create Date:2022-07-27 18:22:12
Last Modify:2020-03-17 22:58:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:shm_mmap

函数原型:static int shm_mmap(struct file *file, struct vm_area_struct *vma)

返回类型:int

参数:

类型参数名称
struct file *file
struct vm_area_struct *vma
489  sfd等于shm_file_data(file)
497  ret等于__shm_open(vma)
498  如果ret则返回:ret
501  ret等于call_mmap(file, vma)
502  如果ret
503  shm_close(vma)
504  返回: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  返回:0