Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\spinlock_debug.c Create Date:2022-07-28 09:53:08
Last Modify:2020-03-17 14:41:09 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__rwlock_init

Proto:void __rwlock_init(rwlock_t *lock, const char *name, struct lock_class_key *key)

Type:void

Parameter:

TypeParameterName
rwlock_t *lock
const char *name
struct lock_class_key *key
41  Called when kernel memory is freed (or unmapped), or if a lock* is destroyed or reinitialized - this code checks whether there is* any held lock in the memory range of to :
42  Initialize a lock instance's lock-class mapping info:
44  raw_lock = (arch_rwlock_t)
45  magic = RWLOCK_MAGIC
46  owner = SPINLOCK_OWNER_INIT
47  owner_cpu = -1