Home
last modified time | relevance | path

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

12

/freebsd/sys/sys/
H A Dfile.h192 const struct fileops *f_ops; /* File operations */ member
347 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); in fo_read()
355 return ((*fp->f_ops->fo_write)(fp, uio, active_cred, flags, td)); in fo_write()
363 return ((*fp->f_ops->fo_truncate)(fp, length, active_cred, td)); in fo_truncate()
371 return ((*fp->f_ops->fo_ioctl)(fp, com, data, active_cred, td)); in fo_ioctl()
379 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll()
386 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred)); in fo_stat()
393 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close()
400 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter()
408 return ((*fp->f_ops->fo_chmod)(fp, mode, active_cred, td)); in fo_chmod()
[all …]
/freebsd/stand/libsa/
H A Dpreload.c40 if (f->f_ops->fo_preload) in preload()
41 (f->f_ops->fo_preload)(f); in preload()
H A Dclose.c78 if (!(f->f_flags & F_RAW) && f->f_ops) in close()
79 err1 = (f->f_ops->fo_close)(f); in close()
H A Dlseek.c102 filepos = (f->f_ops->fo_seek)(f, 0, SEEK_CUR); in lseek()
137 return (f->f_ops->fo_seek)(f, offset, where); in lseek()
H A Dread.c117 errno = (f->f_ops->fo_read)(f, dest, resid, &cresid); in read()
125 errno = (f->f_ops->fo_read)(f, f->f_rabuf, SOPEN_RASIZE, in read()
H A Dopen.c152 f->f_ops = NULL; in open()
202 f->f_ops = fs; in open()
H A Dfstat.c51 errno = (f->f_ops->fo_stat)(f, sb); in fstat()
H A Dreaddir.c45 errno = (f->f_ops->fo_readdir)(f, &dir); in readdirfd()
H A Dwrite.c86 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
H A Dstand.h201 struct fs_ops *f_ops; /* pointer to file system operations */ member
H A Dcd9660.c699 if (strcmp(f->f_ops->fs_name, "cd9660") == 0) { in cd9660_mount()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c86 if (fp->f_ops == &badfileops) { in zfs_file_open()
229 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in zfs_file_seek()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dfile.h59 file->f_ops != &linuxfileops) { in linux_fget()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clkrpc.c204 fp->f_ops = &badfileops; in nfscbd_addsock()
/freebsd/sys/kern/
H A Dkern_descrip.c562 if (fp->f_ops == &path_fileops) { in kern_fcntl()
638 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
743 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
799 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
2133 fp->f_ops = &badfileops; in _falloc_noinstall()
2427 if ((ofde->fde_file->f_ops->fo_flags & DFLAG_PASSABLE) == 0 || in fdcopy()
2869 atomic_store_rel_ptr((volatile uintptr_t *)&fp->f_ops, (uintptr_t)ops); in finit()
3124 if (__predict_false(fp->f_ops == &badfileops)) { in fgetvp_lookup()
3428 if (__predict_false(fp->f_ops == &badfileops)) { in _fget()
3444 if (fp->f_ops ! in _fget()
[all...]
H A Dsys_generic.c327 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_preadv()
529 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_pwritev()
852 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fallocate()
915 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_fspacectl()
H A Dsys_procdesc.c356 fp->f_ops = &badfileops; in procdesc_close()
H A Dvfs_syscalls.c1219 if (error == ENXIO && fp->f_ops != &badfileops) { in openatfp()
1258 if (fp->f_ops == &badfileops) { in openatfp()
2085 error = (fp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0 ? in kern_lseek()
4388 if (__predict_false(fp->f_vnode == NULL || fp->f_ops == &badfileops)) { in getvnode_path()
4416 if (__predict_false((*fpp)->f_ops == &path_fileops)) { in getvnode()
4669 KASSERT(fp->f_ops == &badfileops, in kern_fhopen()
4840 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fadvise()
4973 if (infp->f_ops == &badfileops) { in kern_copy_file_range()
4985 if (outfp->f_ops == &badfileops) { in kern_copy_file_range()
H A Dsys_timerfd.c343 fp->f_ops = &badfileops; in timerfd_close()
H A Duipc_mqueue.c2187 if (&mqueueops != (*fpp)->f_ops) { in _getmq()
2482 if (fp->f_ops == &mqueueops) { in mqueue_fdclose()
2512 if (fp != NULL && fp->f_ops == &mqueueops) { in mq_proc_exit()
2556 fp->f_ops = &badfileops; in mqf_close()
/freebsd/sys/fs/fifofs/
H A Dfifo_vnops.c251 KASSERT(fp->f_ops == &badfileops, ("not badfileops in fifo_open")); in fifo_open()
/freebsd/lib/libsecureboot/
H A Dvectx.c343 strncmp(f->f_ops->fs_name, "tftp", 4) == 0) { in vectx_lseek()
/freebsd/sys/dev/filemon/
H A Dfilemon.c383 if ((fp->f_ops->fo_flags & DFLAG_PASSABLE) == 0) { in filemon_ioctl()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c548 fp->f_ops = &badfileops; in nfsrvd_addsock()
/freebsd/sys/compat/linux/
H A Dlinux_socket.c2456 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_fallback()
2463 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0; in sendfile_fallback()
2533 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_sendfile()

12