Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kvm.c Create Date:2022-07-28 08:44:37
Last Modify:2020-03-16 21:33:46 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kvm_async_pf_task_wake

Proto:void kvm_async_pf_task_wake(unsigned int token)

Type:void

Parameter:

TypeParameterName
unsigned inttoken
193  key = hash_32(token, KVM_TASK_SLEEP_HASHBITS)
194  b = async_pf_sleepers[key]
197  If token == ~0 Then
198  apf_task_wake_all()
199  Return
202  again :
203  raw_spin_lock( & lock)
204  n = _find_apf_task(b, token)
205  If Not n Then
210  n = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
211  If Not n Then
216  raw_spin_unlock( & lock)
217  cpu_relax()
218  Go to again
220  token = token
221  cpu = smp_processor_id()
222  init_swait_queue_head( & wq)
223  hlist_add_head( & link, & list)
224  Else apf_task_wake_one(n)
226  raw_spin_unlock( & lock)
227  Return