函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:06:39 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:sole_lock_spinning_disable_and_check - mark end of code where another* thread was able to busy wait and check if there is a waiter* This is called at the end of the section where spinning is allowed.* It has two functions
函数原型:static int console_lock_spinning_disable_and_check(void)
返回类型:int
参数:无
| 1676 | raw_spin_lock( & console_owner_lock) |
| 1677 | waiter等于READ_ONCE(console_waiter) |
| 1678 | console_owner = NULL |
| 1679 | raw_spin_unlock( & console_owner_lock) |
| 1681 | 如果非waiter则 |
| 1682 | spin_release( & console_owner_dep_map, _THIS_IP_) |
| 1683 | 返回:0 |
| 1687 | WRITE_ONCE(console_waiter, false) |
| 1689 | spin_release( & console_owner_dep_map, _THIS_IP_) |
| 1695 | mutex_release( & console_lock_dep_map, _THIS_IP_) |
| 1696 | 返回:1 |
| 名称 | 描述 |
|---|---|
| console_unlock | sole_unlock - unlock the console system* Releases the console_lock which the caller holds on the console system* and the console driver list.* While the console_lock was held, console output may have been buffered* by printk() |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |