Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/sys/
H A Dfile.h184 struct fileops *f_ops; /* File operations */ member
384 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close()
391 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter()
431 return ((*fp->f_ops->fo_fill_kinfo)(fp, kif, fdp)); in fo_fill_kinfo()
440 if (fp->f_ops->fo_mmap == NULL) in fo_mmap()
450 return ((*fp->f_ops->fo_aio_queue)(fp, job)); in fo_aio_queue()
457 if (fp->f_ops->fo_add_seals == NULL) in fo_add_seals()
459 return ((*fp->f_ops->fo_add_seals)(fp, seals)); in fo_add_seals()
466 if (fp->f_ops->fo_get_seals == NULL) in fo_get_seals()
468 return ((*fp->f_ops->fo_get_seals)(fp, seals)); in fo_get_seals()
[all …]
/freebsd-13.1/stand/libsa/
H A Dpreload.c43 if (f->f_ops->fo_preload) in preload()
44 (f->f_ops->fo_preload)(f); in preload()
H A Dclose.c83 if (!(f->f_flags & F_RAW) && f->f_ops) in close()
84 err1 = (f->f_ops->fo_close)(f); in close()
H A Dlseek.c107 filepos = (f->f_ops->fo_seek)(f, 0, SEEK_CUR); in lseek()
142 return (f->f_ops->fo_seek)(f, offset, where); in lseek()
H A Dread.c121 errno = (f->f_ops->fo_read)(f, dest, resid, &cresid); in read()
129 errno = (f->f_ops->fo_read)(f, f->f_rabuf, SOPEN_RASIZE, in read()
H A Dopen.c157 f->f_ops = NULL; in open()
207 f->f_ops = fs; in open()
H A Dfstat.c56 errno = (f->f_ops->fo_stat)(f, sb); in fstat()
H A Dreaddir.c48 errno = (f->f_ops->fo_readdir)(f, &dir); in readdirfd()
H A Dwrite.c91 if ((errno = (f->f_ops->fo_write)(f, dest, bcount, &resid))) in write()
H A Dstand.h183 struct fs_ops *f_ops; /* pointer to file system operations */ member
H A Dcd9660.c702 if (strcmp(f->f_ops->fs_name, "cd9660") == 0) { in cd9660_mount()
H A Dufs.c938 if (strcmp(f->f_ops->fs_name, "ufs") == 0) in ufs_mount()
/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dfile.h62 file->f_ops != &linuxfileops) { in linux_fget()
/freebsd-13.1/sys/kern/
H A Dkern_descrip.c554 if (fp->f_ops == &path_fileops) { in kern_fcntl()
623 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
728 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
2121 fp->f_ops = &badfileops; in _falloc_noinstall()
3174 if (__predict_false(fp->f_ops == &badfileops)) { in fgetvp_lookup()
3449 if (__predict_false(fp->f_ops == &badfileops)) { in _fget()
3465 if (fp->f_ops != &path_fileops && in _fget()
3515 if (__predict_false(fp->f_ops == &badfileops)) { in fget_mmap()
3629 if (fp->f_ops == &badfileops) { in fgetvp_rights()
3728 if (fp->f_ops == &path_fileops) { in sys_flock()
[all …]
H A Dsys_procdesc.c359 fp->f_ops = &badfileops; in procdesc_close()
H A Dvfs_syscalls.c1167 if (error == ENXIO && fp->f_ops != &badfileops) { in kern_openat()
1205 if (fp->f_ops == &badfileops) { in kern_openat()
2013 error = (fp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0 ? in kern_lseek()
4319 if (fp->f_vnode == NULL || fp->f_ops == &badfileops) { in getvnode_path()
4345 if (error == 0 && (*fpp)->f_ops == &path_fileops) { in getvnode()
4598 KASSERT(fp->f_ops == &badfileops, in kern_fhopen()
4769 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fadvise()
4901 if (infp->f_ops == &badfileops) { in kern_copy_file_range()
4912 if (outfp->f_ops == &badfileops) { in kern_copy_file_range()
H A Dsys_generic.c329 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_preadv()
531 if (!(fp->f_ops->fo_flags & DFLAG_SEEKABLE)) in kern_pwritev()
849 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fallocate()
H A Duipc_mqueue.c2180 if (&mqueueops != (*fpp)->f_ops) { in _getmq()
2456 if (fp->f_ops == &mqueueops) { in mqueue_fdclose()
2486 if (fp != NULL && fp->f_ops == &mqueueops) { in mq_proc_exit()
2530 fp->f_ops = &badfileops; in mqf_close()
H A Dsys_socket.c357 fp->f_ops = &badfileops; in soo_close()
/freebsd-13.1/sys/fs/nfsclient/
H A Dnfs_clkrpc.c206 fp->f_ops = &badfileops; in nfscbd_addsock()
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_file_os.c193 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in zfs_file_seek()
/freebsd-13.1/sys/fs/fifofs/
H A Dfifo_vnops.c262 KASSERT(fp->f_ops == &badfileops, ("not badfileops in fifo_open"));
/freebsd-13.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-13.1/sys/dev/filemon/
H A Dfilemon.c386 if ((fp->f_ops->fo_flags & DFLAG_PASSABLE) == 0) { in filemon_ioctl()
/freebsd-13.1/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c474 fp->f_ops = &badfileops; in nfsrvd_addsock()

12