函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\locking\spinlock_debug.c Create Date:2022-07-27 10:53:22
Last Modify:2020-03-17 14:41:09 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__raw_spin_lock_init

函数原型:void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name, struct lock_class_key *key)

返回类型:void

参数:

类型参数名称
raw_spinlock_t *lock
const char *name
struct lock_class_key *key
23  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 :
24  Initialize a lock instance's lock-class mapping info:
26  raw_lock = (arch_spinlock_t)
27  magic等于SPINLOCK_MAGIC
28  owner等于SPINLOCK_OWNER_INIT
29  owner_cpu等于负1