Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\namespace.c Create Date:2022-07-28 16:53:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:_ipcs - free all ipcs of one type*@ns: the namespace to remove the ipcs from*@ids: the table of ipcs to free*@free: the function called to free each individual ipc* Called for each kind of ipc when an ipc_namespace exits.

Proto:void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, void (*free)(struct ipc_namespace *, struct kern_ipc_perm *))

Type:void

Parameter:

TypeParameterName
struct ipc_namespace *ns
struct ipc_ids *ids
void (*free
102  lock for writing
104  in_use = in_use
106  When total < in_use cycle
107  perm = dr_find() - Return pointer for given ID
108  If (perm == NULL) Then Continue
110  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
111  ipc_lock_object(perm)
112  free(ns, perm)
113  total++
115  lease a write lock
Caller
NameDescribe
sem_exit_ns
shm_exit_ns
msg_exit_ns