函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:free_user_ns

函数原型:static void free_user_ns(struct work_struct *work)

返回类型:void

参数:

类型参数名称
struct work_struct *work
176  ns等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structuser_namespace, work)
179  循环
180  ucounts等于ucounts
181  parent等于parent
183  kfree(forward)
184  kfree(reverse)
187  kfree(forward)
188  kfree(reverse)
191  kfree(forward)
192  kfree(reverse)
194  retire_userns_sysctls(ns)
195  key_free_user_ns(ns)
196  ns_free_inum( & ns)
197  kmem_cache_free(user_ns_cachep, ns)
198  dec_user_namespaces(ucounts)
199  ns等于parent
200 atomic_dec_and_test( & count)循环