Searched full:fget (Results 1 – 25 of 27) sorted by relevance
12
118 /// `fget`/`get_file` functions and decremented by `fput`. The Rust type `ARef<File>` represents a262 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() method264 let ptr = ptr::NonNull::new(unsafe { bindings::fget(fd) }).ok_or(BadFdError)?; in fget()266 // SAFETY: `bindings::fget` created a refcount, and we pass ownership of it to the `ARef`. in fget()297 /// This method is intended to be used together with [`LocalFile::fget`] when the caller knows299 /// might use it when calling `fget` from an ioctl, since ioctls usually do not touch the file
53 * Do a fget on the socket refered to by sock_fd and returns the socket.
150 /* sockfd_lookup will internally do a fget */ in usnic_transport_get_socket()
87 file = fget(fd); in get_devt_from_fd()
199 struct file *fp = fget(clockid_to_fd(id)); in get_clock_desc()
66 extern struct file *fget(unsigned int fd);
150 filp = fget(fd); in kvm_vfio_file_add()
654 file = fget(fd); in kvm_gmem_bind()
353 pipe = fget(pipefd); in autofs_dev_ioctl_setpipefd()718 fp = fget(param->ioctlfd); in _autofs_dev_ioctl()
664 file = fget(fd); in iommufd_ctx_from_fd()672 /* fget is the same as iommufd_ctx_get() */ in iommufd_ctx_from_fd()
81 struct file *file = fget(fd); in sync_file_fdget()
416 struct file *memfd = fget(list[i].memfd); in udmabuf_create()
189 outp->fh = fget(outp->fd); in coda_psdev_write()
77 f->filp = fget(fd); in hl_dio_fd_register()
327 file = fget(fd); in eventfd_fget()
726 ts->rd = fget(rfd); in p9_fd_open()740 ts->wr = fget(wfd); in p9_fd_open()
404 WARN_ON(!container); /* fget ensures we don't race vfio_release */ in vfio_container_from_file()
541 struct file *file = fget(arg); in loop_change_fd()985 struct file *file = fget(config->fd); in loop_configure()1202 * which loop_configure()/loop_change_fd() found via fget() was this in loop_clr_fd()
688 let file = LocalFile::fget(fd)?; in translate_object()854 let file = LocalFile::fget(fd)?; in translate_object()
812 f = fget(fd); in kfd_dbg_trap_enable()
991 drm_file = fget(args->drm_fd); in kfd_ioctl_acquire_vm()2269 drm_file = fget(device_buckets[i].drm_fd); in criu_restore_devices()
803 struct file *file = fget(fd); in get_obj()
482 file = fget(input.fd); in mshv_vtl_ioctl_set_poll_file()
1496 struct file *file = fget(fd); in get_tap_socket()
1740 kaddfd.file = fget(addfd.srcfd); in seccomp_notify_addfd()