Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

Name:adjust_error_retval

Proto:static unsigned long adjust_error_retval(unsigned long addr, unsigned long retv)

Type:unsigned long

Parameter:

TypeParameterName
unsigned longaddr
unsigned longretv
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
44  If (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
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
Caller
NameDescribe
fei_attr_new
fei_retval_set