函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mshyperv.h Create Date:2022-07-27 09:15:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Rep hypercalls. Callers of this functions are supposed to ensure that* rep_count and varhead_size comply with Hyper-V hypercall definition.

函数原型:static inline u64 hv_do_rep_hypercall(u16 code, u16 rep_count, u16 varhead_size, void *input, void *output)

返回类型:u64

参数:

类型参数名称
u16code
u16rep_count
u16varhead_size
void *input
void *output
184  control等于code
188  control或等于varhead_size左移HV_HYPERCALL_VARHEAD_OFFSET
189  control或等于rep_count左移HV_HYPERCALL_REP_COMP_OFFSET
191  循环
192  status等于hv_do_hypercall(control, input, output)
193  如果status按位与HV_HYPERCALL_RESULT_MASK的值不等于hypercall status code 则返回:status
197  rep_comp等于status按位与HV_HYPERCALL_REP_COMP_MASK的值右移HV_HYPERCALL_REP_COMP_OFFSET
200  control与等于HV_HYPERCALL_REP_START_MASK的反
201  control或等于rep_comp左移HV_HYPERCALL_REP_START_OFFSET
203  h_nmi_watchdog - restart NMI watchdog timeout.* If the architecture supports the NMI watchdog, touch_nmi_watchdog()* may be used to reset the timeout - for code which intentionally* disables interrupts for a long time. This call is stateless.
204 rep_comp小于rep_count循环
206  返回:status