/linux-6.3-rc2/lib/ |
A D | errseq.c | 37 #define ERRSEQ_SHIFT ilog2(MAX_ERRNO + 1) 64 BUILD_BUG_ON_NOT_POWER_OF_2(MAX_ERRNO + 1); in errseq_set() 74 if (WARN(unlikely(err == 0 || (unsigned int)-err > MAX_ERRNO), in errseq_set() 82 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set() 151 return -(cur & MAX_ERRNO); in errseq_check() 203 err = -(new & MAX_ERRNO); in errseq_check_and_advance()
|
A D | notifier-error-inject.c | 8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
|
/linux-6.3-rc2/tools/virtio/linux/ |
A D | err.h | 4 #define MAX_ERRNO 4095 macro 6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
/linux-6.3-rc2/tools/include/linux/ |
A D | err.h | 31 #define MAX_ERRNO 4095 macro 33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
|
/linux-6.3-rc2/include/linux/ |
A D | err.h | 18 #define MAX_ERRNO 4095 macro 22 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
|
A D | dma-fence.h | 546 WARN_ON(error >= 0 || error < -MAX_ERRNO); in dma_fence_set_error()
|
A D | xarray.h | 204 entry >= xa_mk_internal(-MAX_ERRNO)); in xa_is_err()
|
/linux-6.3-rc2/fs/cachefiles/ |
A D | io.c | 107 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read() 224 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy() 234 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy() 438 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read() 465 if (to < 0 && to >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read() 554 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) { in __cachefiles_prepare_write() 575 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) { in __cachefiles_prepare_write()
|
/linux-6.3-rc2/tools/testing/scatterlist/linux/ |
A D | mm.h | 132 #define MAX_ERRNO 4095 macro 134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
|
/linux-6.3-rc2/tools/include/nolibc/ |
A D | errno.h | 23 #define MAX_ERRNO 4095 macro
|
/linux-6.3-rc2/kernel/ |
A D | fail_function.c | 42 if (retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval() 46 if (retv != 0 && retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
|
A D | seccomp.c | 1217 if (data > MAX_ERRNO) in __seccomp_filter() 1218 data = MAX_ERRNO; in __seccomp_filter()
|
/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/ |
A D | errseq.rst | 25 它被实现为一个无符号的32位值。低位被指定保存错误代码(在1和MAX_ERRNO之间)。高位
|
/linux-6.3-rc2/fs/btrfs/ |
A D | tree-log.h | 22 #define BTRFS_LOG_FORCE_COMMIT (-(MAX_ERRNO + 1))
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A D | interrupt.c | 281 if (unlikely(r3 >= (unsigned long)-MAX_ERRNO) && is_not_scv) { in syscall_exit_prepare()
|
/linux-6.3-rc2/arch/mips/kernel/ |
A D | module.c | 342 if (sym->st_value >= -MAX_ERRNO) { in __apply_relocate()
|
/linux-6.3-rc2/Documentation/powerpc/ |
A D | syscall64-abi.rst | 39 -4095..-1 (i.e., it is >= -MAX_ERRNO (-4095) as an unsigned comparison),
|
/linux-6.3-rc2/drivers/bcma/ |
A D | scan.c | 269 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | profiler.inc.h | 19 #define MAX_ERRNO 4095 macro 37 #define IS_ERR_VALUE(x) (unsigned long)(void*)(x) >= (unsigned long)-MAX_ERRNO
|
/linux-6.3-rc2/drivers/char/ |
A D | mem.c | 607 if ((unsigned long long)offset >= -MAX_ERRNO) { in memory_lseek()
|
/linux-6.3-rc2/Documentation/fault-injection/ |
A D | fault-injection.rst | 192 - ERRNO: retval must be -1 to -MAX_ERRNO (-4096). 193 - ERR_NULL: retval must be 0 or -1 to -MAX_ERRNO (-4096).
|
/linux-6.3-rc2/Documentation/core-api/ |
A D | errseq.rst | 14 designated to hold an error code (between 1 and MAX_ERRNO). The upper bits
|
/linux-6.3-rc2/security/keys/ |
A D | keyctl.c | 1342 error >= MAX_ERRNO || in keyctl_reject_key()
|
/linux-6.3-rc2/net/9p/ |
A D | client.c | 98 if (err > 0 || err < -MAX_ERRNO) { in safe_errno()
|
/linux-6.3-rc2/fs/ext4/ |
A D | ext4.h | 2554 #define ERR_BAD_DX_DIR (-(MAX_ERRNO - 1))
|