Searched refs:target_fh (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/bsd-user/freebsd/ |
H A D | os-stat.c | 144 target_freebsd_fhandle_t *target_fh; in t2h_freebsd_fhandle() local 146 if (!lock_user_struct(VERIFY_READ, target_fh, target_addr, 1)) { in t2h_freebsd_fhandle() 149 __get_user(host_fh->fh_fsid.val[0], &target_fh->fh_fsid.val[0]); in t2h_freebsd_fhandle() 150 __get_user(host_fh->fh_fsid.val[1], &target_fh->fh_fsid.val[0]); in t2h_freebsd_fhandle() 151 __get_user(host_fh->fh_fid.fid_len, &target_fh->fh_fid.fid_len); in t2h_freebsd_fhandle() 153 memcpy(host_fh->fh_fid.fid_data, target_fh->fh_fid.fid_data, in t2h_freebsd_fhandle() 155 unlock_user_struct(target_fh, target_addr, 0); in t2h_freebsd_fhandle() 161 target_freebsd_fhandle_t *target_fh; in h2t_freebsd_fhandle() local 163 if (!lock_user_struct(VERIFY_WRITE, target_fh, target_addr, 0)) { in h2t_freebsd_fhandle() 166 __put_user(host_fh->fh_fsid.val[0], &target_fh->fh_fsid.val[0]); in h2t_freebsd_fhandle() [all …]
|
/openbmc/qemu/linux-user/ |
H A D | syscall.c | 7863 struct file_handle *target_fh; in do_name_to_handle_at() local 7880 target_fh = lock_user(VERIFY_WRITE, handle, total_size, 0); in do_name_to_handle_at() 7881 if (!target_fh) { in do_name_to_handle_at() 7897 memcpy(target_fh, fh, total_size); in do_name_to_handle_at() 7898 target_fh->handle_bytes = tswap32(fh->handle_bytes); in do_name_to_handle_at() 7899 target_fh->handle_type = tswap32(fh->handle_type); in do_name_to_handle_at() 7901 unlock_user(target_fh, handle, total_size); in do_name_to_handle_at() 7916 struct file_handle *target_fh; in do_open_by_handle_at() local 7926 target_fh = lock_user(VERIFY_READ, handle, total_size, 1); in do_open_by_handle_at() 7927 if (!target_fh) { in do_open_by_handle_at() [all...] |