函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fail_function.c Create Date:2022-07-27 12:40:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:adjust_error_retval

函数原型:static unsigned long adjust_error_retval(unsigned long addr, unsigned long retv)

返回类型:unsigned long

参数:

类型参数名称
unsigned longaddr
unsigned longretv
39  :get_injectable_error_type(addr)恒等于EI_ETYPE_NULL
40  如果retv不等于0则返回:0
42  退出
43  :get_injectable_error_type(addr)恒等于EI_ETYPE_ERRNO
44  如果(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.)则返回:(unsigned long) - EINVAL
46  退出
47  :get_injectable_error_type(addr)恒等于EI_ETYPE_ERRNO_NULL
48  如果(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.)则返回:(unsigned long) - EINVAL
50  退出
53  返回:retv
调用者
名称描述
fei_attr_new
fei_retval_set