Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\vm86_32.c Create Date:2022-07-28 08:41:56
Last Modify:2022-05-22 10:11:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_vm86_irq_handling

Proto:static int do_vm86_irq_handling(int subfunction, int irqnumber)

Type:int

Parameter:

TypeParameterName
intsubfunction
intirqnumber
844  Case subfunction == VM86_GET_AND_RESET_IRQ
845  Return get_and_reset_irq(irqnumber)
847  Case subfunction == VM86_GET_IRQ_BITS
848  Return irqbits
850  Case subfunction == VM86_REQUEST_IRQ
851  sig = irqnumber >> 8
852  irq = irqnumber & 255
853  If Not Check operation authority Then Return -EPERM
854  If Not ( 1 << sig & 0 = don't send a signal ) Then Return -EPERM
855  If invalid_vm86_irq(irq) Then Return -EPERM
856  If tsk Then Return -EPERM
857  ret = request a new interrupt
858  If ret Then Return ret
859  sig = sig
860  tsk = current process
861  Return irq
863  Case subfunction == VM86_FREE_IRQ
864  If invalid_vm86_irq(irqnumber) Then Return -EPERM
865  If Not tsk Then Return 0
866  If tsk != current process Then Return -EPERM
867  free_vm86_irq(irqnumber)
868  Return 0
871  Return -EINVAL