Home
last modified time | relevance | path

Searched refs:rlim64 (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/include/nolibc/ !
Dsys.h918 struct rlimit64 rlim64; in getrlimit() local
921 ret = __sysret(sys_prlimit64(0, resource, NULL, &rlim64)); in getrlimit()
922 rlim->rlim_cur = rlim64.rlim_cur; in getrlimit()
923 rlim->rlim_max = rlim64.rlim_max; in getrlimit()
931 struct rlimit64 rlim64 = { in setrlimit() local
936 return __sysret(sys_prlimit64(0, resource, &rlim64, NULL)); in setrlimit()
/linux-6.12.1/kernel/ !
Dsys.c1637 static inline bool rlim64_is_infinity(__u64 rlim64) in rlim64_is_infinity() argument
1640 return rlim64 >= ULONG_MAX; in rlim64_is_infinity()
1642 return rlim64 == RLIM64_INFINITY; in rlim64_is_infinity()
1646 static void rlim_to_rlim64(const struct rlimit *rlim, struct rlimit64 *rlim64) in rlim_to_rlim64() argument
1649 rlim64->rlim_cur = RLIM64_INFINITY; in rlim_to_rlim64()
1651 rlim64->rlim_cur = rlim->rlim_cur; in rlim_to_rlim64()
1653 rlim64->rlim_max = RLIM64_INFINITY; in rlim_to_rlim64()
1655 rlim64->rlim_max = rlim->rlim_max; in rlim_to_rlim64()
1658 static void rlim64_to_rlim(const struct rlimit64 *rlim64, struct rlimit *rlim) in rlim64_to_rlim() argument
1660 if (rlim64_is_infinity(rlim64->rlim_cur)) in rlim64_to_rlim()
[all …]