Function report |
Source Code:kernel\printk\printk.c |
Create Date:2022-07-28 10:06:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static int console_lock_spinning_disable_and_check(void)
Type:int
Parameter:Nothing
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 | If Not waiter Then |
1682 | spin_release( & console_owner_dep_map, _THIS_IP_) |
1683 | Return 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 | Return 1 |
Name | Describe |
---|---|
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() |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |