Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobj_ns_type_register

Proto:int kobj_ns_type_register(const struct kobj_ns_type_operations *ops)

Type:int

Parameter:

TypeParameterName
const struct kobj_ns_type_operations *ops
1016  type = type
1019  spin_lock( & kobj_ns_type_lock)
1021  error = -EINVAL
1022  If type >= KOBJ_NS_TYPES Then Go to out
1025  error = -EINVAL
1026  If type <= KOBJ_NS_TYPE_NONE Then Go to out
1029  error = -EBUSY
1030  If kobj_ns_ops_tbl[type] Then Go to out
1033  error = 0
1034  kobj_ns_ops_tbl[type] = ops
1036  out :
1037  spin_unlock( & kobj_ns_type_lock)
1038  Return error