Home
last modified time | relevance | path

Searched refs:f_ops (Results 1 – 25 of 30) sorted by relevance

12

/freebsd-12.1/sys/sys/
H A Dfile.h172 struct fileops *f_ops; /* File operations */ member
345 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll()
353 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred, td)); in fo_stat()
360 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close()
367 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter()
375 return ((*fp->f_ops->fo_chmod)(fp, mode, active_cred, td)); in fo_chmod()
383 return ((*fp->f_ops->fo_chown)(fp, uid, gid, active_cred, td)); in fo_chown()
400 return ((*fp->f_ops->fo_seek)(fp, offset, whence, td)); in fo_seek()
407 return ((*fp->f_ops->fo_fill_kinfo)(fp, kif, fdp)); in fo_fill_kinfo()
416 if (fp->f_ops->fo_mmap == NULL) in fo_mmap()
[all …]
/freebsd-12.1/stand/libsa/
H A Dclose.c81 if (!(f->f_flags & F_RAW) && f->f_ops) in close()
82 err1 = (f->f_ops->fo_close)(f); in close()
H A Dlseek.c106 if ((filepos = (f->f_ops->fo_seek)(f, (off_t)0, SEEK_CUR)) == -1) in lseek()
140 return (f->f_ops->fo_seek)(f, offset, where); in lseek()
H A Dread.c116 errno = (f->f_ops->fo_read)(f, dest, resid, &cresid); in read()
123 errno = (f->f_ops->fo_read)(f, f->f_rabuf, SOPEN_RASIZE, in read()
H A Dopen.c107 f->f_ops = NULL; in open()
155 f->f_ops = fs; in open()
H A Dfstat.c57 errno = (f->f_ops->fo_stat)(f, sb);
H A Dreaddir.c47 errno = (f->f_ops->fo_readdir)(f, &dir); in readdirfd()
H A Dwrite.c90 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
H A Dstand.h179 struct fs_ops *f_ops; /* pointer to file system operations */ member
/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dfile.h62 file->f_ops != &linuxfileops) { in linux_fget()
/freebsd-12.1/sys/fs/nfsclient/
H A Dnfs_clkrpc.c195 fp->f_ops = &badfileops; in nfscbd_addsock()
/freebsd-12.1/sys/fs/fifofs/
H A Dfifo_vnops.c253 KASSERT(fp->f_ops == &badfileops, ("not badfileops in fifo_open"));
/freebsd-12.1/sys/compat/cloudabi/
H A Dcloudabi_file.c272 if (error == ENXIO && fp->f_ops != &badfileops) in cloudabi_sys_file_open()
289 if (fp->f_ops == &badfileops) { in cloudabi_sys_file_open()
/freebsd-12.1/sys/kern/
H A Dsys_procdesc.c376 fp->f_ops = &badfileops; in procdesc_close()
H A Dkern_descrip.c1888 fp->f_ops = &badfileops; in falloc_noinstall()
2079 (ofde->fde_file->f_ops->fo_flags & DFLAG_PASSABLE) == 0 || in fdcopy()
2135 if ((ofde->fde_file->f_ops->fo_flags & DFLAG_PASSABLE) == 0) { in fdcopy_remapped()
2562 atomic_store_rel_ptr((volatile uintptr_t *)&fp->f_ops, (uintptr_t)ops); in finit()
2752 if (fp->f_ops == &badfileops) { in _fget()
2921 if (fp->f_ops == &badfileops) { in fgetvp_rights()
H A Dvfs_syscalls.c1097 if (error == ENXIO && fp->f_ops != &badfileops) in kern_openat()
1132 if (fp->f_ops == &badfileops) { in kern_openat()
1872 error = (fp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0 ? in kern_lseek()
4133 if (fp->f_vnode == NULL || fp->f_ops == &badfileops) { in getvnode()
4375 KASSERT(fp->f_ops == &badfileops, in sys_fhopen()
4542 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fallocate()
4651 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fadvise()
H A Duipc_mqueue.c2173 if (&mqueueops != (*fpp)->f_ops) { in _getmq()
2449 if (fp->f_ops == &mqueueops) { in mqueue_fdclose()
2479 if (fp != NULL && fp->f_ops == &mqueueops) { in mq_proc_exit()
2523 fp->f_ops = &badfileops; in mqf_close()
H A Dvfs_vnops.c394 if (fp->f_ops == &badfileops) { in vn_open_vnode()
396 fp->f_ops = &vnops; in vn_open_vnode()
1575 fp->f_ops = &badfileops; in vn_closefile()
H A Dsys_generic.c328 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_preadv()
530 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_pwritev()
H A Dsys_socket.c339 fp->f_ops = &badfileops; in soo_close()
/freebsd-12.1/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c455 fp->f_ops = &badfileops; in nfsrvd_addsock()
/freebsd-12.1/sys/compat/linux/
H A Dlinux_event.c745 fp->f_ops = &badfileops; in eventfd_close()
1039 fp->f_ops = &badfileops; in timerfd_close()
/freebsd-12.1/sys/dev/cxgbe/cxgbei/
H A Dicl_cxgbei.c647 fp->f_ops = &badfileops; in icl_cxgbei_conn_handoff()
/freebsd-12.1/sys/ufs/ffs/
H A Dffs_alloc.c3501 origops = vfp->f_ops; in sysctl_ffs_fsck()
3507 atomic_store_rel_ptr((volatile uintptr_t *)&vfp->f_ops, in sysctl_ffs_fsck()
3510 atomic_store_rel_ptr((volatile uintptr_t *)&vfp->f_ops, in sysctl_ffs_fsck()
/freebsd-12.1/sys/dev/iscsi/
H A Dicl_soft.c1352 fp->f_ops = &badfileops; in icl_soft_conn_handoff()

12