Home
last modified time | relevance | path

Searched refs:MAX_ERRNO (Results 1 – 25 of 27) sorted by relevance

12

/linux/tools/testing/selftests/bpf/progs/
H A Derr.h5 #define MAX_ERRNO 4095 macro
6 #define IS_ERR_VALUE(x) (unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO
/linux/tools/virtio/linux/
H A Derr.h4 #define MAX_ERRNO 4095 macro
6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
/linux/tools/include/linux/
H A Derr.h31 #define MAX_ERRNO 4095 macro
33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
/linux/include/linux/
H A Derr.h18 #define MAX_ERRNO 4095 macro
28 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
H A Dxarray.h208 entry >= xa_mk_internal(-MAX_ERRNO)); in xa_is_err()
/linux/lib/
H A Derrseq.c37 #define ERRSEQ_SHIFT (ilog2(MAX_ERRNO) + 1)
75 if (WARN(unlikely(err == 0 || (unsigned int)-err > MAX_ERRNO), in errseq_set()
H A Dnotifier-error-inject.c8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
/linux/fs/cachefiles/
H A Dio.c109 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO && off2 != -ENXIO) { in cachefiles_read()
226 if (off < 0 && off >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
236 if (off2 < 0 && off2 >= (loff_t)-MAX_ERRNO) in cachefiles_query_occupancy()
428 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read()
455 if (to < 0 && to >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read()
552 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) { in __cachefiles_prepare_write()
573 if (pos < 0 && pos >= (loff_t)-MAX_ERRNO) { in __cachefiles_prepare_write()
/linux/tools/testing/scatterlist/linux/
H A Dmm.h131 #define MAX_ERRNO 4095 macro
133 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
/linux/tools/include/nolibc/
H A Derrno.h26 #define MAX_ERRNO 4095 macro
/linux/kernel/
H A Dfail_function.c42 if (retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
46 if (retv != 0 && retv < (unsigned long)-MAX_ERRNO) in adjust_error_retval()
H A Dseccomp.c1281 if (data > MAX_ERRNO) in __seccomp_filter()
1282 data = MAX_ERRNO; in __seccomp_filter()
/linux/Documentation/translations/zh_CN/core-api/
H A Derrseq.rst25 它被实现为一个无符号的32位值。低位被指定保存错误代码(在1和MAX_ERRNO之间)。高位
/linux/rust/kernel/
H A Derror.rs140 if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 { in try_from_errno()
/linux/arch/powerpc/kernel/
H A Dinterrupt.c284 if (unlikely(r3 >= (unsigned long)-MAX_ERRNO) && is_not_scv) { in syscall_exit_prepare()
/linux/arch/mips/kernel/
H A Dmodule.c331 if (sym->st_value >= -MAX_ERRNO) { in __apply_relocate()
/linux/Documentation/arch/powerpc/
H A Dsyscall64-abi.rst39 -4095..-1 (i.e., it is >= -MAX_ERRNO (-4095) as an unsigned comparison),
/linux/kernel/bpf/
H A Dbpf_lsm.c445 retval_range->minval = -MAX_ERRNO; in BTF_ID()
/linux/drivers/bcma/
H A Dscan.c269 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
/linux/drivers/char/
H A Dmem.c601 if ((unsigned long long)offset >= -MAX_ERRNO) { in memory_lseek()
/linux/Documentation/core-api/
H A Derrseq.rst14 designated to hold an error code (between 1 and MAX_ERRNO). The upper bits
/linux/fs/btrfs/
H A Dfiemap.c25 #define BTRFS_FIEMAP_FLUSH_CACHE (-(MAX_ERRNO + 1))
/linux/security/keys/
H A Dkeyctl.c1347 error >= MAX_ERRNO || in keyctl_reject_key()
/linux/net/9p/
H A Dclient.c77 if (err > 0 || err < -MAX_ERRNO) { in safe_errno()
/linux/fs/ext4/
H A Dext4.h2642 #define ERR_BAD_DX_DIR (-(MAX_ERRNO - 1))

12