Home
last modified time | relevance | path

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

12

/linux-6.15/lib/
H A Derrseq.c37 #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()
H A Dnotifier-error-inject.c8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
/linux-6.15/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-6.15/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-6.15/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-6.15/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 Ddma-fence.h588 WARN_ON(error >= 0 || error < -MAX_ERRNO); in dma_fence_set_error()
/linux-6.15/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()
430 if (off < 0 && off >= (loff_t)-MAX_ERRNO) { in cachefiles_do_prepare_read()
457 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.15/tools/testing/scatterlist/linux/
H A Dmm.h132 #define MAX_ERRNO 4095 macro
134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
/linux-6.15/tools/include/nolibc/
H A Derrno.h23 #define MAX_ERRNO 4095 macro
/linux-6.15/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()
/linux-6.15/Documentation/translations/zh_CN/core-api/
H A Derrseq.rst25 它被实现为一个无符号的32位值。低位被指定保存错误代码(在1和MAX_ERRNO之间)。高位
/linux-6.15/fs/btrfs/
H A Dtree-log.h30 #define BTRFS_LOG_FORCE_COMMIT (-(MAX_ERRNO + 1))
H A Dfiemap.c25 #define BTRFS_FIEMAP_FLUSH_CACHE (-(MAX_ERRNO + 1))
/linux-6.15/rust/kernel/
H A Derror.rs122 if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 { in try_from_errno()
/linux-6.15/arch/powerpc/kernel/
H A Dinterrupt.c280 if (unlikely(r3 >= (unsigned long)-MAX_ERRNO) && is_not_scv) { in syscall_exit_prepare()
/linux-6.15/arch/mips/kernel/
H A Dmodule.c331 if (sym->st_value >= -MAX_ERRNO) { in __apply_relocate()
/linux-6.15/Documentation/arch/powerpc/
H A Dsyscall64-abi.rst39 -4095..-1 (i.e., it is >= -MAX_ERRNO (-4095) as an unsigned comparison),
/linux-6.15/kernel/bpf/
H A Dbpf_lsm.c443 retval_range->minval = -MAX_ERRNO; in BTF_ID()
/linux-6.15/drivers/bcma/
H A Dscan.c269 #define IS_ERR_VALUE_U32(x) ((x) >= (u32)-MAX_ERRNO)
/linux-6.15/drivers/char/
H A Dmem.c590 if ((unsigned long long)offset >= -MAX_ERRNO) { in memory_lseek()
/linux-6.15/Documentation/core-api/
H A Derrseq.rst14 designated to hold an error code (between 1 and MAX_ERRNO). The upper bits
/linux-6.15/Documentation/translations/it_IT/doc-guide/
H A Dkernel-doc.rst396 * define MAX_ERRNO - maximum errno value that is supported
402 #define MAX_ERRNO 4095
/linux-6.15/Documentation/fault-injection/
H A Dfault-injection.rst234 - ERRNO: retval must be -1 to -MAX_ERRNO (-4096).
235 - ERR_NULL: retval must be 0 or -1 to -MAX_ERRNO (-4096).
/linux-6.15/Documentation/doc-guide/
H A Dkernel-doc.rst367 * define MAX_ERRNO - maximum errno value that is supported
373 #define MAX_ERRNO 4095

12