Searched refs:target_fh (Results 1 – 2 of 2) sorted by relevance
/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 166 __put_user(host_fh->fh_fsid.val[0], &target_fh->fh_fsid.val[0]); in h2t_freebsd_fhandle() 170 memcpy(target_fh->fh_fid.fid_data, host_fh->fh_fid.fid_data, in h2t_freebsd_fhandle() [all …]
|
/qemu/linux-user/ |
H A D | syscall.c | 7824 struct file_handle *target_fh; in do_name_to_handle_at() local 7842 if (!target_fh) { in do_name_to_handle_at() 7858 memcpy(target_fh, fh, total_size); in do_name_to_handle_at() 7859 target_fh->handle_bytes = tswap32(fh->handle_bytes); in do_name_to_handle_at() 7860 target_fh->handle_type = tswap32(fh->handle_type); in do_name_to_handle_at() 7862 unlock_user(target_fh, handle, total_size); in do_name_to_handle_at() 7877 struct file_handle *target_fh; in do_open_by_handle_at() local 7888 if (!target_fh) { in do_open_by_handle_at() 7892 fh = g_memdup(target_fh, total_size); in do_open_by_handle_at() 7894 fh->handle_type = tswap32(target_fh->handle_type); in do_open_by_handle_at() [all …]
|