/freebsd/sys/sys/ |
H A D | file.h | 192 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 D | preload.c | 40 if (f->f_ops->fo_preload) in preload() 41 (f->f_ops->fo_preload)(f); in preload()
|
H A D | close.c | 78 if (!(f->f_flags & F_RAW) && f->f_ops) in close() 79 err1 = (f->f_ops->fo_close)(f); in close()
|
H A D | lseek.c | 102 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 D | read.c | 117 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 D | open.c | 152 f->f_ops = NULL; in open() 202 f->f_ops = fs; in open()
|
H A D | fstat.c | 51 errno = (f->f_ops->fo_stat)(f, sb); in fstat()
|
H A D | readdir.c | 45 errno = (f->f_ops->fo_readdir)(f, &dir); in readdirfd()
|
H A D | write.c | 86 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
|
H A D | stand.h | 201 struct fs_ops *f_ops; /* pointer to file system operations */ member
|
H A D | cd9660.c | 699 if (strcmp(f->f_ops->fs_name, "cd9660") == 0) { in cd9660_mount()
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_file_os.c | 86 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 D | file.h | 59 file->f_ops != &linuxfileops) { in linux_fget()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clkrpc.c | 204 fp->f_ops = &badfileops; in nfscbd_addsock()
|
/freebsd/sys/kern/ |
H A D | kern_descrip.c | 562 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 D | sys_generic.c | 327 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 D | sys_procdesc.c | 356 fp->f_ops = &badfileops; in procdesc_close()
|
H A D | vfs_syscalls.c | 1219 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 D | sys_timerfd.c | 343 fp->f_ops = &badfileops; in timerfd_close()
|
H A D | uipc_mqueue.c | 2187 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 D | fifo_vnops.c | 251 KASSERT(fp->f_ops == &badfileops, ("not badfileops in fifo_open")); in fifo_open()
|
/freebsd/lib/libsecureboot/ |
H A D | vectx.c | 343 strncmp(f->f_ops->fs_name, "tftp", 4) == 0) { in vectx_lseek()
|
/freebsd/sys/dev/filemon/ |
H A D | filemon.c | 383 if ((fp->f_ops->fo_flags & DFLAG_PASSABLE) == 0) { in filemon_ioctl()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdkrpc.c | 548 fp->f_ops = &badfileops; in nfsrvd_addsock()
|
/freebsd/sys/compat/linux/ |
H A D | linux_socket.c | 2456 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()
|