/kernel/linux/linux-5.10/lib/ |
D | errseq.c | 36 #define ERRSEQ_SHIFT ilog2(MAX_ERRNO + 1) 63 BUILD_BUG_ON_NOT_POWER_OF_2(MAX_ERRNO + 1); in errseq_set() 73 if (WARN(unlikely(err == 0 || (unsigned int)-err > MAX_ERRNO), in errseq_set() 81 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set() 150 return -(cur & MAX_ERRNO); in errseq_check() 202 err = -(new & MAX_ERRNO); in errseq_check_and_advance()
|
D | notifier-error-inject.c | 8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
|
/kernel/linux/linux-5.10/tools/virtio/linux/ |
D | err.h | 4 #define MAX_ERRNO 4095 macro 6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
/kernel/linux/linux-5.10/tools/include/linux/ |
D | err.h | 31 #define MAX_ERRNO 4095 macro 33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
/kernel/linux/linux-5.10/include/linux/ |
D | err.h | 18 #define MAX_ERRNO 4095 macro 22 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
|
D | dma-fence.h | 546 WARN_ON(error >= 0 || error < -MAX_ERRNO); in dma_fence_set_error()
|
D | xarray.h | 202 entry >= xa_mk_internal(-MAX_ERRNO)); in xa_is_err()
|
/kernel/linux/linux-5.10/tools/testing/scatterlist/linux/ |
D | mm.h | 132 #define MAX_ERRNO 4095 macro 134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
|
/kernel/linux/linux-5.10/kernel/ |
D | fail_function.c | 44 if (retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval() 48 if (retv != 0 && retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
|
D | seccomp.c | 949 if (data > MAX_ERRNO) in __seccomp_filter() 950 data = MAX_ERRNO; in __seccomp_filter()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | syscall_64.c | 169 if (unlikely(r3 >= (unsigned long)-MAX_ERRNO) && !scv) { in syscall_exit_prepare()
|
D | entry_32.S | 416 li r8,-MAX_ERRNO
|
/kernel/linux/linux-5.10/Documentation/powerpc/ |
D | syscall64-abi.rst | 39 -4095..-1 (i.e., it is >= -MAX_ERRNO (-4095) as an unsigned comparison),
|
/kernel/linux/linux-5.10/arch/mips/kernel/ |
D | module.c | 335 if (sym->st_value >= -MAX_ERRNO) { in __apply_relocate()
|
/kernel/linux/linux-5.10/Documentation/fault-injection/ |
D | fault-injection.rst | 167 - ERRNO: retval must be -1 to -MAX_ERRNO (-4096). 168 - ERR_NULL: retval must be 0 or -1 to -MAX_ERRNO (-4096).
|
/kernel/linux/linux-5.10/drivers/bcma/ |
D | scan.c | 270 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | profiler.inc.h | 19 #define MAX_ERRNO 4095 macro 37 #define IS_ERR_VALUE(x) (unsigned long)(void*)(x) >= (unsigned long)-MAX_ERRNO
|
/kernel/linux/linux-5.10/Documentation/core-api/ |
D | errseq.rst | 14 designated to hold an error code (between 1 and MAX_ERRNO). The upper bits
|
/kernel/linux/linux-5.10/drivers/char/ |
D | mem.c | 824 if ((unsigned long long)offset >= -MAX_ERRNO) { in memory_lseek()
|
/kernel/linux/linux-5.10/security/keys/ |
D | keyctl.c | 1342 error >= MAX_ERRNO || in keyctl_reject_key()
|
/kernel/linux/linux-5.10/tools/include/nolibc/ |
D | nolibc.h | 112 #define MAX_ERRNO 4095 macro
|
/kernel/linux/linux-5.10/net/9p/ |
D | client.c | 96 if ((err > 0) || (err < -MAX_ERRNO)) { in safe_errno()
|
/kernel/linux/linux-5.10/fs/ext4/ |
D | ext4.h | 2407 #define ERR_BAD_DX_DIR (-(MAX_ERRNO - 1))
|
/kernel/linux/linux-5.10/fs/proc/ |
D | base.c | 922 if ((unsigned long long)offset >= -MAX_ERRNO) in mem_lseek()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | verifier.c | 5308 ret_reg->smin_value = -MAX_ERRNO; in do_refine_retval_range() 5309 ret_reg->s32_min_value = -MAX_ERRNO; in do_refine_retval_range()
|