函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called with ns->shm_ids(ns).rwsem locked

函数原型:static int shm_try_destroy_orphaned(int id, void *p, void *data)

返回类型:int

参数:

类型参数名称
intid
void *p
void *data
354  ns等于data
355  ipcp等于p
356  shp等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(ipcp, structshmid_kernel, shm_perm)
364  如果( The task created the shm object. NULL if the task is dead. != NULL)则返回:0
367  如果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 kernel
368  shm_lock_by_ptr(shp)
369  shm_destroy(ns, shp)
371  返回:0