Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_user_ns

Proto:static void free_user_ns(struct work_struct *work)

Type:void

Parameter:

TypeParameterName
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  Do
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 - Deallocate an object*@cachep: The cache the allocation was from.*@objp: The previously allocated object.* Free an object which was previously allocated from this* cache.
198  dec_user_namespaces(ucounts)
199  ns = parent
200  When atomic_dec_and_test( & count) cycle