函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\vm86_32.c Create Date:2022-07-27 09:40:54
Last Modify:2022-05-22 10:11:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:handle_vm86_trap

函数原型:int handle_vm86_trap(struct kernel_vm86_regs *regs, long error_code, int trapno)

返回类型:int

参数:

类型参数名称
struct kernel_vm86_regs *regs
longerror_code
inttrapno
571  vm86等于vm86
573  如果 for vm86 internal use
574  如果trapno恒等于3或trapno恒等于1则
576  返回:0
578  There are so many possible reasons for this function to return* VM86_INTx, so adding another doesn't bother me. We can expect* userspace programs to be able to handle it. (Getting a problem* in userspace is always better than an Oops anyway.) [KD]
579  返回:0
581  如果trapno不等于1则返回:1
583  trap_nr等于trapno
584  error_code等于error_code
585  force_sig(SIGTRAP)
586  返回:0
调用者
名称描述
do_debugOur handling of the processor debug registers is non-trivial.* We do not clear them on entry and exit from the kernel. Therefore* it is possible to get a watchpoint trap here from inside the kernel.* However, the code in
handle_vm86_fault