函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:ipc\namespace.c Create Date:2022-07-27 18:28:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:_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.

函数原型:void free_ipcs(struct ipc_namespace *ns, struct ipc_ids *ids, void (*free)(struct ipc_namespace *, struct kern_ipc_perm *))

返回类型:void

参数:

类型参数名称
struct ipc_namespace *ns
struct ipc_ids *ids
void (*free
102  lock for writing
104  in_use等于in_use
106 total小于in_use循环
107  perm等于dr_find() - Return pointer for given ID
108  如果(perm == NULL)则继续下一循环
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
调用者
名称描述
sem_exit_ns
shm_exit_ns
msg_exit_ns