函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称: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_unlocksole_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()