Function report |
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 activity | Download SCCT | Chinese |
Name:kvm_async_pf_task_wake
Proto:void kvm_async_pf_task_wake(unsigned int token)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | token |
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 |
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 |
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 |