函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Locking assumes this will only be called with task == current

函数原型:void exit_shm(struct task_struct *task)

返回类型:void

参数:

类型参数名称
struct task_struct *task
385  ns等于ipc_ns
388  如果链表为空则返回
396  如果非shm_rmid_forced
397  lock for reading
398  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(shp, & shm_clist, shm_clist)
399  The task created the shm object. NULL if the task is dead. = NULL
404  删除链表项
405  lease a read lock
406  返回
414  lock for writing
416  The task created the shm object. NULL if the task is dead. = NULL
418  如果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
419  shm_lock_by_ptr(shp)
420  shm_destroy(ns, shp)
425  删除链表项
426  lease a write lock
调用者
名称描述
do_exit
ksys_unshareshare allows a process to 'unshare' part of the process* context which was originally shared using clone. copy_** functions used by do_fork() cannot be used here directly* because they modify an inactive task_struct that is being* constructed