Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Locking assumes this will only be called with task == current

Proto:void exit_shm(struct task_struct *task)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
385  ns = ipc_ns
388  If list_empty - tests whether a list is empty*@head: the list to test. Then Return
396  If Not shm_rmid_forced Then
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  deletes entry from list
405  lease a read lock
406  Return
414  lock for writing
416  The task created the shm object. NULL if the task is dead. = NULL
418  If 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 Then
419  shm_lock_by_ptr(shp)
420  shm_destroy(ns, shp)
425  deletes entry from list
426  lease a write lock
Caller
NameDescribe
do_exit