Function report |
Source Code:kernel\cpu.c |
Create Date:2022-07-28 09:00:52 |
| Last Modify:2020-03-18 13:00:59 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:cpuhp_store_callbacks
Proto:static int cpuhp_store_callbacks(enum cpuhp_state state, const char *name, int (*startup)(unsigned int cpu), int (*teardown)(unsigned int cpu), bool multi_instance)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum cpuhp_state | state | |
| const char * | name | |
| int (* | startup | |
| int (* | teardown | |
| bool | multi_instance |
| 1582 | ret = 0 |
| 1593 | If name && ( state == CPUHP_AP_ONLINE_DYN || state == CPUHP_BP_PREPARE_DYN ) Then |
| 1600 | sp = cpuhp_get_step(state) |
| 1607 | multi_instance = multi_instance |
| 1608 | INIT_HLIST_HEAD( & list) |
| 1609 | Return ret |
| Name | Describe |
|---|---|
| __cpuhp_setup_state_cpuslocked | __cpuhp_setup_state_cpuslocked - Setup the callbacks for an hotplug machine state*@state: The state to setup*@invoke: If true, the startup function is invoked for cpus where* cpu state >= @state*@startup: startup callback function*@teardown: teardown |
| __cpuhp_remove_state_cpuslocked | __cpuhp_remove_state_cpuslocked - Remove the callbacks for an hotplug machine state*@state: The state to remove*@invoke: If true, the teardown function is invoked for cpus where* cpu state >= @state |
| 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 |