Function report |
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 activity | Download SCCT | Chinese |
Name:do_vm86_irq_handling
Proto:static int do_vm86_irq_handling(int subfunction, int irqnumber)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | subfunction | |
| int | irqnumber |
| 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 |
| 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 |
| 857 | ret = request a new interrupt |
| 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 |
| 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 |