Function report |
Source Code:kernel\cpu.c |
Create Date:2022-07-28 09:00:55 |
Last Modify:2020-03-18 13:00:59 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__cpuhp_state_add_instance_cpuslocked
Proto:int __cpuhp_state_add_instance_cpuslocked(enum cpuhp_state state, struct hlist_node *node, bool invoke)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
enum cpuhp_state | state | |
struct hlist_node * | node | |
bool | invoke |
1682 | lockdep_assert_cpus_held() |
1684 | sp = cpuhp_get_step(state) |
1685 | If (multi_instance == false) Then Return -EINVAL |
1688 | mutex_lock( & cpuhp_state_mutex) |
1697 | for_each_present_cpu(cpu) |
1698 | st = per_cpu_ptr( & cpuhp_state, cpu) |
1705 | If ret Then |
1711 | add_node : |
1712 | ret = 0 |
1713 | hlist_add_head(node, & list) |
1714 | unlock : |
1715 | mutex_unlock( & cpuhp_state_mutex) |
1716 | Return ret |
Name | Describe |
---|---|
__cpuhp_state_add_instance | |
cpuhp_state_add_instance_nocalls_cpuslocked |
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 |