函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lock_set_class

函数原型:void lock_set_class(struct lockdep_map *lock, const char *name, struct lock_class_key *key, unsigned int subclass, unsigned long ip)

返回类型:void

参数:

类型参数名称
struct lockdep_map *lock
const char *name
struct lock_class_key *key
unsigned intsubclass
unsigned longip
4436  如果此条件成立可能性小(为编译器优化)(lockdep_recursion)则返回
4439  raw_local_irq_save(flags)
4440  lockdep_recursion等于1
4441  Check whether we follow the irq-flags state precisely:
4442  如果__lock_set_class(lock, name, key, subclass, ip)则We are building curr_chain_key incrementally, so double-check* it from scratch, to make sure that it's done correctly:
4444  lockdep_recursion等于0
4445  raw_local_irq_restore(flags)