函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_pid

函数原型:void free_pid(struct pid *pid)

返回类型:void

参数:

类型参数名称
struct pid *pid
130  spin_lock_irqsave( & Note: disable interrupts while the pidmap_lock is held as an* interrupt might come in and do read_lock(&tasklist_lock), flags)
131 i小于等于空间中级别循环
132  upid等于进程空间i
133  ns等于进程所处空间
135  :-- == 2
136  :-- == 1
142  退出
143  :-- == PIDNS_ADDING
146  pid_allocated等于0
148  :-- == 0
150  退出
153  删除释放idr
155  spin_unlock_irqrestore( & Note: disable interrupts while the pidmap_lock is held as an* interrupt might come in and do read_lock(&tasklist_lock), flags)
157  Exported common interfaces
调用者
名称描述
__change_pid
copy_process创建进程