函数逻辑报告 |
Source Code:kernel\locking\lockdep.c |
Create Date:2022-07-27 10:49:57 |
Last Modify:2020-03-17 14:16:01 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Static locks do not have their class-keys yet - for them the key is* the lock object itself. If the lock is in the per cpu area, the* canonical address of the lock (per cpu offset removed) is used.
函数原型:static bool assign_lock_key(struct lockdep_map *lock)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct lockdep_map * | lock |
865 | BUILD_BUG_ON - break compile if a condition is true(sizeof(structlock_class_key) > sizeof(raw_spinlock_t)) |
868 | 如果__is_kernel_percpu_address(addr, & can_addr)则key等于can_addr |
870 | 否则如果__is_module_percpu_address(addr, & can_addr)则key等于can_addr |
874 | 否则 |
877 | 打印错误信息("INFO: trying to register non-static key.\n") |
878 | 打印错误信息("the code is fine but needs lockdep annotation.\n") |
879 | 打印错误信息("turning off the locking correctness validator.\n") |
880 | dump_stack() |
881 | 返回:false |
884 | 返回:true |
名称 | 描述 |
---|---|
register_lock_class | Register a lock's class in the hash-table, if the class is not present* yet. Otherwise we look it up. We cache the result in the lock object* itself, so actual lookup of the hash should be once per lock object. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |