函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__shm_open

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

返回类型:int

参数:

类型参数名称
struct vm_area_struct *vma
237  file等于File we map to (can be NULL).
238  sfd等于shm_file_data(file)
241  shp等于shm_lock_(check_) routines are called in the paths where the rwsem* is not necessarily held.
243  如果是错误则返回:错误
246  如果shm_file不等于file
248  shm_unlock(shp)
249  返回:负EINVAL
252  shm_atim等于ktime_get_real_seconds - Get the seconds portion of CLOCK_REALTIME* Returns the wall clock seconds since 1970. This replaces the* get_seconds() interface which is not y2038 safe on 32bit systems.
253  ipc_update_pid( & shm_lprid, task_tgid(当前进程))
254  shm_nattch自加
255  shm_unlock(shp)
256  返回:0
调用者
名称描述
shm_open
shm_mmap