函数逻辑报告 |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-27 11:06:41 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sole_trylock_spinning - try to get console_lock by busy waiting* This allows to busy wait for the console_lock when the current* owner is running in specially marked sections. It means that* the current owner is running and cannot reschedule until it
函数原型:static int console_trylock_spinning(void)
返回类型:int
参数:无
1711 | struct task_struct * owner = NULL |
1713 | bool spin = false |
1721 | raw_spin_lock( & console_owner_lock) |
1722 | owner等于READ_ONCE(console_owner) |
1723 | waiter等于READ_ONCE(console_waiter) |
1725 | WRITE_ONCE(console_waiter, true) |
1726 | spin = true |
1728 | raw_spin_unlock( & console_owner_lock) |
1739 | 如果非spin则 |
1741 | 返回:0 |
1745 | spin_acquire( & console_owner_dep_map, 0, 0, _THIS_IP_) |
1747 | 当READ_ONCE(console_waiter)循环 |
1748 | cpu_relax() |
1749 | spin_release( & console_owner_dep_map, _THIS_IP_) |
1758 | mutex_acquire( & console_lock_dep_map, 0, 1, _THIS_IP_) |
1760 | 返回:1 |
名称 | 描述 |
---|---|
vprintk_emit |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |