Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobj_ns_grab_current

Proto:void *kobj_ns_grab_current(enum kobj_ns_type type)

Type:void

Parameter:

TypeParameterName
enum kobj_ns_typetype
1083  void * ns = NULL
1085  spin_lock( & kobj_ns_type_lock)
1086  If type > KOBJ_NS_TYPE_NONE && type < KOBJ_NS_TYPES && kobj_ns_ops_tbl[type] Then ns = grab_current_ns()
1089  spin_unlock( & kobj_ns_type_lock)
1091  Return ns