Function report |
Source Code:kernel\fail_function.c |
Create Date:2022-07-28 11:36:34 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:adjust_error_retval
Proto:static unsigned long adjust_error_retval(unsigned long addr, unsigned long retv)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | addr | |
unsigned long | retv |
39 | Case get_injectable_error_type(addr) == EI_ETYPE_NULL |
40 | If retv != 0 Then Return 0 |
42 | Break |
43 | Case get_injectable_error_type(addr) == EI_ETYPE_ERRNO |
46 | Break |
47 | Case get_injectable_error_type(addr) == EI_ETYPE_ERRNO_NULL |
48 | If (retv != 0 && retv < (unsigned long) - Kernel pointers have redundant information, so we can use a* scheme where we can return either an error code or a normal* pointer with the same return value.* This should be a per-architecture thing, to allow different* error and pointer decisions.) Then Return (unsigned long) - EINVAL |
50 | Break |
53 | Return retv |
Name | Describe |
---|---|
fei_attr_new | |
fei_retval_set |
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 |