Home
last modified time | relevance | path

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

12

/freebsd-14.2/sys/sys/
H A Dfile.h191 struct fileops *f_ops; /* File operations */ member
392 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close()
399 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter()
448 if (fp->f_ops->fo_mmap == NULL) in fo_mmap()
458 return ((*fp->f_ops->fo_aio_queue)(fp, job)); in fo_aio_queue()
465 if (fp->f_ops->fo_add_seals == NULL) in fo_add_seals()
474 if (fp->f_ops->fo_get_seals == NULL) in fo_get_seals()
483 if (fp->f_ops->fo_fallocate == NULL) in fo_fallocate()
493 if (fp->f_ops->fo_fspacectl == NULL) in fo_fspacectl()
503 if (fp1->f_ops->fo_cmp == NULL) in fo_cmp()
[all …]
/freebsd-14.2/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.h196 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-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c89 if (fp->f_ops == &badfileops) { in zfs_file_open()
232 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in zfs_file_seek()
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dfile.h59 file->f_ops != &linuxfileops) { in linux_fget()
/freebsd-14.2/sys/fs/nfsclient/
H A Dnfs_clkrpc.c204 fp->f_ops = &badfileops; in nfscbd_addsock()
/freebsd-14.2/sys/kern/
H A Dkern_descrip.c564 if (fp->f_ops == &path_fileops) { in kern_fcntl()
640 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
745 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
2134 fp->f_ops = &badfileops; in _falloc_noinstall()
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 != &path_fileops && in _fget()
3494 if (__predict_false(fp->f_ops == &badfileops)) { in fget_mmap()
3608 if (fp->f_ops == &badfileops) { in fgetvp_rights()
3707 if (fp->f_ops == &path_fileops) { in sys_flock()
[all …]
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()
853 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fallocate()
916 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_fspacectl()
H A Dsys_procdesc.c359 fp->f_ops = &badfileops; in procdesc_close()
H A Dvfs_syscalls.c1181 if (error == ENXIO && fp->f_ops != &badfileops) { in openatfp()
1220 if (fp->f_ops == &badfileops) { in openatfp()
2048 error = (fp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0 ? in kern_lseek()
4352 if (__predict_false(fp->f_vnode == NULL || fp->f_ops == &badfileops)) { in getvnode_path()
4380 if (__predict_false((*fpp)->f_ops == &path_fileops)) { in getvnode()
4633 KASSERT(fp->f_ops == &badfileops, in kern_fhopen()
4804 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fadvise()
4937 if (infp->f_ops == &badfileops) { in kern_copy_file_range()
4949 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.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()
/freebsd-14.2/sys/fs/fifofs/
H A Dfifo_vnops.c253 KASSERT(fp->f_ops == &badfileops, ("not badfileops in fifo_open")); in fifo_open()
/freebsd-14.2/lib/libsecureboot/
H A Dvectx.c343 strncmp(f->f_ops->fs_name, "tftp", 4) == 0) { in vectx_lseek()
/freebsd-14.2/sys/dev/filemon/
H A Dfilemon.c384 if ((fp->f_ops->fo_flags & DFLAG_PASSABLE) == 0) { in filemon_ioctl()
/freebsd-14.2/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c548 fp->f_ops = &badfileops; in nfsrvd_addsock()
/freebsd-14.2/sys/compat/linux/
H A Dlinux_socket.c2454 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_fallback()
2461 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0; in sendfile_fallback()
2531 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_sendfile()

12