函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:shm_close

函数原型:static void shm_close(struct vm_area_struct *vma)

返回类型:void

参数:

类型参数名称
struct vm_area_struct *vma
324  file等于File we map to (can be NULL).
325  sfd等于shm_file_data(file)
327  ns等于ns
329  lock for writing
331  shp等于shm_lock_(check_) routines are called in the paths where the rwsem* is not necessarily held.
337  如果WARN_ON_ONCE(是错误)则转到:done
340  ipc_update_pid( & shm_lprid, task_tgid(当前进程))
341  shm_dtim等于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.
342  shm_nattch自减
343  如果shm_may_destroy - identifies whether shm segment should be destroyed now* Returns true if and only if there are no active users of the segment and* one of the following is true:* 1) shmctl(id, IPC_RMID, NULL) was called for this shp* 2) sysctl kernelshm_destroy(ns, shp)
345  否则shm_unlock(shp)
347  done :
348  lease a write lock
调用者
名称描述
shm_mmap