Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__shm_open

Proto:static int __shm_open(struct vm_area_struct *vma)

Type:int

Parameter:

TypeParameterName
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  If IS_ERR(shp) Then Return PTR_ERR(shp)
246  If shm_file != file Then
248  shm_unlock(shp)
249  Return -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(current process))
254  shm_nattch++
255  shm_unlock(shp)
256  Return 0
Caller
NameDescribe
shm_open
shm_mmap