/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | file.h | 69 extern void linux_file_free(struct linux_file *filp); 72 fput(struct linux_file *filp) argument 74 if (refcount_release(filp->_file == NULL ? 75 &filp->f_count : &filp->_file->f_count)) { 76 linux_file_free(filp); 81 file_count(struct linux_file *filp) argument 83 return (filp->_file == NULL ? 84 filp->f_count : filp 108 fd_install(unsigned int fd, struct linux_file *filp) argument 163 struct linux_file *filp; local [all...] |
H A D | fs.h | 116 #define fasync_helper(fd, filp, on, queue) \ 119 *(queue) = &(filp)->f_sigio; \ 241 nonseekable_open(struct inode *inode, struct file *filp) argument
|
/freebsd-13-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_shmemfs.c | 73 struct linux_file *filp; local 82 filp = &fileobj->file; 85 filp->f_count = 1; 86 filp->f_vnode = vp; 87 filp->f_shmem = vm_pager_allocate(OBJT_DEFAULT, NULL, size, 89 if (filp->f_shmem == NULL) { 93 return (filp); 95 kfree(filp);
|
H A D | linux_compat.c | 444 struct linux_file *filp; local 446 filp = kzalloc(sizeof(*filp), GFP_KERNEL); 449 filp->f_count = 1; 452 spin_lock_init(&filp->f_kqlock); 453 knlist_init(&filp->f_selinfo.si_note, &filp->f_kqlock, 456 return (filp); 460 linux_file_free(struct linux_file *filp) argument 462 if (filp 705 linux_get_fop(struct linux_file *filp, const struct file_operations **fop, struct linux_cdev **dev) argument 764 struct linux_file *filp; local 933 linux_file_ioctl_sub(struct file *fp, struct linux_file *filp, const struct file_operations *fop, u_long cmd, caddr_t data, struct thread *td) argument 1025 struct linux_file *filp = container_of(wq, struct linux_file, f_wait_queue.wq); local 1037 linux_poll_wait(struct linux_file *filp, wait_queue_head_t *wqh, poll_table *p) argument 1064 linux_poll_wait_dequeue(struct linux_file *filp) argument 1087 linux_poll_wakeup(struct linux_file *filp) argument 1107 struct linux_file *filp = kn->kn_hook; local 1117 struct linux_file *filp = kn->kn_hook; local 1127 struct linux_file *filp = kn->kn_hook; local 1147 linux_file_kqfilter_poll(struct linux_file *filp, int kqflags) argument 1184 struct linux_file *filp; local 1234 struct linux_file *filp; local 1391 struct linux_file *filp; local 1433 struct linux_file *filp; local 1476 struct linux_file *filp; local 1498 struct linux_file *filp; local 1540 struct linux_file *filp; local 1622 struct linux_file *filp; local 1690 struct linux_file *filp; local 1711 struct linux_file *filp; local [all...] |
/freebsd-13-stable/sys/ofed/include/rdma/ |
H A D | ib.h | 111 static inline bool ib_safe_file_access(struct file *filp) argument 119 return (filp->_file != NULL && 120 filp->_file == td->td_fpop && 121 filp->_file->f_cred == td->td_ucred);
|
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | zpl_file.c | 44 zpl_open(struct inode *ip, struct file *filp) argument 50 error = generic_file_open(ip, filp); 56 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); 65 zpl_release(struct inode *ip, struct file *filp) argument 76 error = -zfs_close(ip, filp->f_flags, cr); 85 zpl_iterate(struct file *filp, zpl_dir_context_t *ctx) argument 93 error = -zfs_readdir(file_inode(filp), ctx, cr); 103 zpl_readdir(struct file *filp, void *dirent, filldir_t filldir) argument 106 ZPL_DIR_CONTEXT_INIT(dirent, filldir, filp 124 zpl_fsync(struct file *filp, int datasync) argument 158 zpl_fsync(struct file *filp, loff_t start, loff_t end, int datasync) argument 223 zpl_file_accessed(struct file *filp) argument 262 struct file *filp = kiocb->ki_filp; local 318 struct file *filp = kiocb->ki_filp; local 356 struct file *filp = kiocb->ki_filp; local 394 struct file *filp = kiocb->ki_filp; local 495 zpl_llseek(struct file *filp, loff_t offset, int whence) argument 564 zpl_mmap(struct file *filp, struct vm_area_struct *vma) argument 595 zpl_readpage(struct file *filp, struct page *pp) argument 630 zpl_readpages(struct file *filp, struct address_space *mapping, struct list_head *pages, unsigned nr_pages) argument 794 zpl_fallocate(struct file *filp, int mode, loff_t offset, loff_t len) argument 829 zpl_ioctl_getflags(struct file *filp, void __user *arg) argument 895 zpl_ioctl_setflags(struct file *filp, void __user *arg) argument 921 zpl_ioctl_getxattr(struct file *filp, void __user *arg) argument 935 zpl_ioctl_setxattr(struct file *filp, void __user *arg) argument 969 zpl_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument 987 zpl_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | zpl_ctldir.c | 41 zpl_common_open(struct inode *ip, struct file *filp) argument 43 if (filp->f_mode & FMODE_WRITE) 46 return (generic_file_open(ip, filp)); 53 zpl_root_iterate(struct file *filp, zpl_dir_context_t *ctx) argument 55 zfsvfs_t *zfsvfs = ITOZSB(file_inode(filp)); 60 if (!zpl_dir_emit_dots(filp, ctx)) 86 zpl_root_readdir(struct file *filp, void *dirent, filldir_t filldir) argument 89 ZPL_DIR_CONTEXT_INIT(dirent, filldir, filp->f_pos); 92 error = zpl_root_iterate(filp, &ctx); 93 filp 246 zpl_snapdir_iterate(struct file *filp, zpl_dir_context_t *ctx) argument 289 zpl_snapdir_readdir(struct file *filp, void *dirent, filldir_t filldir) argument 479 zpl_shares_iterate(struct file *filp, zpl_dir_context_t *ctx) argument 514 zpl_shares_readdir(struct file *filp, void *dirent, filldir_t filldir) argument [all...] |
H A D | zfs_file_os.c | 45 struct file *filp; local 54 filp = filp_open(path, flags, mode); 59 if (IS_ERR(filp)) 60 return (-PTR_ERR(filp)); 62 *fpp = filp; 264 * filp - file pointer 272 zfs_file_getattr(zfs_file_t *filp, zfs_file_attr_t *zfattr) argument 278 rc = vfs_getattr(&filp->f_path, &stat, STATX_BASIC_STATS, 281 rc = vfs_getattr(&filp->f_path, &stat); 283 rc = vfs_getattr(filp 305 zfs_file_fsync(zfs_file_t *filp, int flags) argument [all...] |
H A D | zfs_ioctl_os.c | 91 zfsdev_state_init(struct file *filp) argument 114 filp->private_data = zs; 140 zfsdev_state_destroy(struct file *filp) argument 145 ASSERT(filp->private_data != NULL); 147 zs = filp->private_data; 158 zfsdev_open(struct inode *ino, struct file *filp) argument 163 error = zfsdev_state_init(filp); 170 zfsdev_release(struct inode *ino, struct file *filp) argument 175 error = zfsdev_state_destroy(filp); 182 zfsdev_ioctl(struct file *filp, unsigne argument 228 zfsdev_compat_ioctl(struct file *filp, unsigned cmd, unsigned long arg) argument [all...] |
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/spl/ |
H A D | spl-generic.c | 577 spl_getattr(struct file *filp, struct kstat *stat) argument 581 ASSERT(filp); 585 rc = vfs_getattr(&filp->f_path, stat, STATX_BASIC_STATS, 588 rc = vfs_getattr(&filp->f_path, stat); 590 rc = vfs_getattr(filp->f_path.mnt, filp->f_dentry, stat); 646 struct file *filp; local 649 filp = filp_open(spl_hostid_path, 0, 0); 651 if (IS_ERR(filp)) 654 error = spl_getattr(filp, [all...] |
H A D | spl-procfs-list.c | 169 procfs_list_open(struct inode *inode, struct file *filp) argument 171 int rc = seq_open_private(filp, &procfs_list_seq_ops, 176 struct seq_file *f = filp->private_data; 186 procfs_list_write(struct file *filp, const char __user *buf, size_t len, argument 189 struct seq_file *f = filp->private_data;
|
H A D | spl-proc.c | 472 proc_slab_open(struct inode *inode, struct file *filp) argument 474 return (seq_open(filp, &slab_seq_ops)); 512 proc_taskq_all_open(struct inode *inode, struct file *filp) argument 514 return (seq_open(filp, &taskq_all_seq_ops)); 518 proc_taskq_open(struct inode *inode, struct file *filp) argument 520 return (seq_open(filp, &taskq_seq_ops));
|
H A D | spl-kstat.c | 411 proc_kstat_open(struct inode *inode, struct file *filp) argument 416 rc = seq_open(filp, &kstat_seq_ops); 420 f = filp->private_data; 427 proc_kstat_write(struct file *filp, const char __user *buf, size_t len, argument 430 struct seq_file *f = filp->private_data;
|
/freebsd-13-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_user_mad.c | 340 static ssize_t ib_umad_read(struct file *filp, char __user *buf, argument 343 struct ib_umad_file *file = filp->private_data; 355 if (filp->f_flags & O_NONBLOCK) 453 static ssize_t ib_umad_write(struct file *filp, const char __user *buf, argument 456 struct ib_umad_file *file = filp->private_data; 614 static unsigned int ib_umad_poll(struct file *filp, struct poll_table_struct *wait) argument 616 struct ib_umad_file *file = filp->private_data; 621 poll_wait(filp, &file->recv_wait, wait); 891 static long ib_umad_ioctl(struct file *filp, unsigned int cmd, argument 896 return ib_umad_reg_agent(filp 909 ib_umad_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument 936 ib_umad_open(struct inode *inode, struct file *filp) argument 979 ib_umad_close(struct inode *inode, struct file *filp) argument 1030 ib_umad_sm_open(struct inode *inode, struct file *filp) argument 1077 ib_umad_sm_close(struct inode *inode, struct file *filp) argument [all...] |
H A D | ib_uverbs_main.c | 378 static ssize_t ib_uverbs_event_read(struct file *filp, char __user *buf, argument 381 struct ib_uverbs_event_file *file = filp->private_data; 391 if (filp->f_flags & O_NONBLOCK) 443 static unsigned int ib_uverbs_event_poll(struct file *filp, argument 447 struct ib_uverbs_event_file *file = filp->private_data; 449 poll_wait(filp, &file->poll_wait, wait); 459 static int ib_uverbs_event_fasync(int fd, struct file *filp, int on) argument 461 struct ib_uverbs_event_file *file = filp->private_data; 463 return fasync_helper(fd, filp, on, &file->async_queue); 466 static int ib_uverbs_event_close(struct inode *inode, struct file *filp) argument 643 struct file *filp; local 747 ib_uverbs_write(struct file *filp, const char __user *buf, size_t count, loff_t *pos) argument 896 ib_uverbs_mmap(struct file *filp, struct vm_area_struct *vma) argument 930 ib_uverbs_open(struct inode *inode, struct file *filp) argument 1000 ib_uverbs_close(struct inode *inode, struct file *filp) argument [all...] |
H A D | ib_ucm.c | 72 struct file *filp; member in struct:ib_ucm_file 407 if (file->filp->f_flags & O_NONBLOCK) 1103 static ssize_t ib_ucm_write(struct file *filp, const char __user *buf, argument 1106 struct ib_ucm_file *file = filp->private_data; 1110 if (WARN_ON_ONCE(!ib_safe_file_access(filp))) 1133 static unsigned int ib_ucm_poll(struct file *filp, argument 1136 struct ib_ucm_file *file = filp->private_data; 1139 poll_wait(filp, &file->poll_wait, wait); 1155 static int ib_ucm_open(struct inode *inode, struct file *filp) argument 1169 filp 1176 ib_ucm_close(struct inode *inode, struct file *filp) argument [all...] |
H A D | ib_ucma.c | 67 struct file *filp; member in struct:ucma_file 403 if (file->filp->f_flags & O_NONBLOCK) 1600 static ssize_t ucma_write(struct file *filp, const char __user *buf, argument 1603 struct ucma_file *file = filp->private_data; 1607 if (WARN_ON_ONCE(!ib_safe_file_access(filp))) 1632 static unsigned int ucma_poll(struct file *filp, struct poll_table_struct *wait) argument 1634 struct ucma_file *file = filp->private_data; 1637 poll_wait(filp, &file->poll_wait, wait); 1653 static int ucma_open(struct inode *inode, struct file *filp) argument 1673 filp 1679 ucma_close(struct inode *inode, struct file *filp) argument 1719 ucma_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | ib_uverbs_cmd.c | 326 struct file *filp; local 387 filp = ib_uverbs_alloc_event_file(file, ib_dev, 1); 388 if (IS_ERR(filp)) { 389 ret = PTR_ERR(filp); 401 fd_install(resp.async_fd, filp); 409 fput(filp); 1331 struct file *filp; local 1345 filp = ib_uverbs_alloc_event_file(file, ib_dev, 0); 1346 if (IS_ERR(filp)) { 1348 return PTR_ERR(filp); [all...] |
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | vfs_compat.h | 152 struct file *filp, 157 if (offset < 0 && !(filp->f_mode & FMODE_UNSIGNED_OFFSET)) 163 if (offset != filp->f_pos) { 164 spin_lock(&filp->f_lock); 165 filp->f_pos = offset; 166 filp->f_version = 0; 167 spin_unlock(&filp->f_lock); 151 lseek_execute( struct file *filp, struct inode *inode, loff_t offset, loff_t maxsize) argument
|
/freebsd-13-stable/sys/dev/drm2/ |
H A D | drm_gem.c | 174 drm_gem_remove_prime_handles(struct drm_gem_object *obj, struct drm_file *filp) argument 177 drm_prime_remove_buf_handle(&filp->prime, 181 drm_prime_remove_buf_handle(&filp->prime, 188 * Removes the mapping from handle to filp for this object. 191 drm_gem_handle_delete(struct drm_file *filp, u32 handle) argument 196 obj = drm_gem_names_remove(&filp->object_names, handle); 203 drm_gem_remove_prime_handles(obj, filp); 207 dev->driver->gem_close_object(obj, filp); 287 drm_gem_object_lookup(struct drm_device *dev, struct drm_file *filp, argument 292 obj = drm_gem_name_ref(&filp [all...] |
H A D | drmP.h | 267 * \param filp file pointer of the caller. 594 /** File representing the shmem storage: filp in Linux parlance */ 1310 struct drm_file *filp); 1320 struct drm_file *filp); 1477 int drm_gem_handle_delete(struct drm_file *filp, u32 handle); 1528 struct drm_file *filp,
|
/freebsd-13-stable/sys/dev/netmap/ |
H A D | netmap_kloop.c | 445 struct file *filp; member in struct:sync_kloop_poll_entry 484 entry->filp = file; 727 struct file *filp = NULL; local 732 filp = eventfd_fget( 734 if (IS_ERR(filp)) { 735 err = PTR_ERR(filp); 738 irq = eventfd_ctx_fileget(filp); 744 poll_ctx->entries[i].irq_filp = filp; 757 filp = eventfd_fget( 759 if (IS_ERR(filp)) { [all...] |
/freebsd-13-stable/sys/dev/drm2/ttm/ |
H A D | ttm_bo_api.h | 688 * @filp: filp as input from the mmap method. 696 extern int ttm_bo_mmap(struct file *filp, struct vm_area_struct *vma, 703 * @filp: Pointer to the struct file attempting to read / write. 720 extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
|
H A D | ttm_bo_vm.c | 400 ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp, 433 ret = driver->verify_access(bo, filp);
|
/freebsd-13-stable/sys/i386/include/ |
H A D | cserial.h | 505 int (*select) (chan_t *h, int type, void *st, struct file *filp);
|