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_netlink

Proto:const void *kobj_ns_netlink(enum kobj_ns_type type, struct sock *sk)

Type:void

Parameter:

TypeParameterName
enum kobj_ns_typetype
struct sock *sk
1097  const void * ns = NULL
1099  spin_lock( & kobj_ns_type_lock)
1100  If type > KOBJ_NS_TYPE_NONE && type < KOBJ_NS_TYPES && kobj_ns_ops_tbl[type] Then ns = netlink_ns(sk)
1103  spin_unlock( & kobj_ns_type_lock)
1105  Return ns