Searched refs:target_rlim (Results 1 – 4 of 4) sorted by relevance
/openbmc/qemu/bsd-user/ |
H A D | bsd-proc.h | 142 struct target_rlimit *target_rlim; in do_bsd_getrlimit() local 163 if (!lock_user_struct(VERIFY_WRITE, target_rlim, arg2, 0)) { in do_bsd_getrlimit() 166 target_rlim->rlim_cur = host_to_target_rlim(rlim.rlim_cur); in do_bsd_getrlimit() 167 target_rlim->rlim_max = host_to_target_rlim(rlim.rlim_max); in do_bsd_getrlimit() 168 unlock_user_struct(target_rlim, arg2, 1); in do_bsd_getrlimit() 178 struct target_rlimit *target_rlim; in do_bsd_setrlimit() local 185 if (!lock_user_struct(VERIFY_READ, target_rlim, arg2, 1)) { in do_bsd_setrlimit() 188 rlim.rlim_cur = target_to_host_rlim(target_rlim->rlim_cur); in do_bsd_setrlimit() 189 rlim.rlim_max = target_to_host_rlim(target_rlim->rlim_max); in do_bsd_setrlimit() 190 unlock_user_struct(target_rlim, arg2, 0); in do_bsd_setrlimit()
|
H A D | bsd-proc.c | 41 rlim_t target_to_host_rlim(abi_llong target_rlim) in target_to_host_rlim() argument 43 return tswap64(target_rlim); in target_to_host_rlim()
|
H A D | qemu-bsd.h | 38 rlim_t target_to_host_rlim(abi_llong target_rlim);
|
/openbmc/qemu/linux-user/ |
H A D | syscall.c | 987 static inline rlim_t target_to_host_rlim(abi_ulong target_rlim) in target_to_host_rlim() argument 992 target_rlim_swap = tswapal(target_rlim); in target_to_host_rlim() 10293 struct target_rlimit *target_rlim; in _syscall2() local 10295 if (!lock_user_struct(VERIFY_READ, target_rlim, arg2, 1)) in _syscall2() 10299 unlock_user_struct(target_rlim, arg2, 0); in _syscall2() 10321 struct target_rlimit *target_rlim; in _syscall2() local 10330 unlock_user_struct(target_rlim, arg2, 1); in _syscall2() 11702 struct target_rlimit *target_rlim; in _syscall2() local 11705 target_rlim->rlim_cur = host_to_target_rlim(rlim.rlim_cur); in _syscall2() 11706 target_rlim->rlim_max = host_to_target_rlim(rlim.rlim_max); in _syscall2() [all …]
|