Home
last modified time | relevance | path

Searched full:fget (Results 1 – 25 of 27) sorted by relevance

12

/linux/rust/kernel/fs/
H A Dfile.rs118 /// `fget`/`get_file` functions and decremented by `fput`. The Rust type `ARef<File>` represents a
262 pub fn fget(fd: u32) -> Result<ARef<LocalFile>, BadFdError> { in fget() method
264 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 knows
299 /// might use it when calling `fget` from an ioctl, since ioctls usually do not touch the file
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_transport.h53 * Do a fget on the socket refered to by sock_fd and returns the socket.
H A Dusnic_transport.c150 /* sockfd_lookup will internally do a fget */ in usnic_transport_get_socket()
/linux/drivers/infiniband/core/
H A Ducaps.c87 file = fget(fd); in get_devt_from_fd()
/linux/kernel/time/
H A Dposix-clock.c199 struct file *fp = fget(clockid_to_fd(id)); in get_clock_desc()
/linux/include/linux/
H A Dfile.h66 extern struct file *fget(unsigned int fd);
/linux/virt/kvm/
H A Dvfio.c150 filp = fget(fd); in kvm_vfio_file_add()
H A Dguest_memfd.c654 file = fget(fd); in kvm_gmem_bind()
/linux/fs/autofs/
H A Ddev-ioctl.c353 pipe = fget(pipefd); in autofs_dev_ioctl_setpipefd()
718 fp = fget(param->ioctlfd); in _autofs_dev_ioctl()
/linux/drivers/iommu/iommufd/
H A Dmain.c664 file = fget(fd); in iommufd_ctx_from_fd()
672 /* fget is the same as iommufd_ctx_get() */ in iommufd_ctx_from_fd()
/linux/drivers/dma-buf/
H A Dsync_file.c81 struct file *file = fget(fd); in sync_file_fdget()
H A Dudmabuf.c416 struct file *memfd = fget(list[i].memfd); in udmabuf_create()
/linux/fs/coda/
H A Dpsdev.c189 outp->fh = fget(outp->fd); in coda_psdev_write()
/linux/drivers/accel/habanalabs/common/
H A Dhldio.c77 f->filp = fget(fd); in hl_dio_fd_register()
/linux/fs/
H A Deventfd.c327 file = fget(fd); in eventfd_fget()
/linux/net/9p/
H A Dtrans_fd.c726 ts->rd = fget(rfd); in p9_fd_open()
740 ts->wr = fget(wfd); in p9_fd_open()
/linux/drivers/vfio/
H A Dcontainer.c404 WARN_ON(!container); /* fget ensures we don't race vfio_release */ in vfio_container_from_file()
/linux/drivers/block/
H A Dloop.c541 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()
/linux/drivers/android/binder/
H A Dthread.rs688 let file = LocalFile::fget(fd)?; in translate_object()
854 let file = LocalFile::fget(fd)?; in translate_object()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_debug.c812 f = fget(fd); in kfd_dbg_trap_enable()
H A Dkfd_chardev.c991 drm_file = fget(args->drm_fd); in kfd_ioctl_acquire_vm()
2269 drm_file = fget(device_buckets[i].drm_fd); in criu_restore_devices()
/linux/drivers/misc/
H A Dntsync.c803 struct file *file = fget(fd); in get_obj()
/linux/drivers/hv/
H A Dmshv_vtl_main.c482 file = fget(input.fd); in mshv_vtl_ioctl_set_poll_file()
/linux/drivers/vhost/
H A Dnet.c1496 struct file *file = fget(fd); in get_tap_socket()
/linux/kernel/
H A Dseccomp.c1740 kaddfd.file = fget(addfd.srcfd); in seccomp_notify_addfd()

12