Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
enum cpuhp_statestate
struct hlist_node *node
boolinvoke
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)
1690  If Not invoke || Not multi Then Go to add_node
1697  for_each_present_cpu(cpu)
1698  st = per_cpu_ptr( & cpuhp_state, cpu)
1699  cpustate = state
1701  If cpustate < state Then Continue
1704  ret = Call the startup/teardown function for a step either on the AP or* on the current CPU.
1705  If ret Then
1708  Go to unlock
1711  add_node :
1712  ret = 0
1713  hlist_add_head(node, & list)
1714  unlock :
1715  mutex_unlock( & cpuhp_state_mutex)
1716  Return ret
Caller
NameDescribe
__cpuhp_state_add_instance
cpuhp_state_add_instance_nocalls_cpuslocked