Home
last modified time | relevance | path

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

12

/freebsd/sys/sys/
H A Dfile.h204 const struct fileops *f_ops; /* File operations */ member
364 return ((*fp->f_ops->fo_read)(fp, uio, active_cred, flags, td)); in fo_read()
372 return ((*fp->f_ops->fo_write)(fp, uio, active_cred, flags, td)); in fo_write()
380 return ((*fp->f_ops->fo_truncate)(fp, length, active_cred, td)); in fo_truncate()
388 return ((*fp->f_ops->fo_ioctl)(fp, com, data, active_cred, td)); in fo_ioctl()
396 return ((*fp->f_ops->fo_poll)(fp, events, active_cred, td)); in fo_poll()
403 return ((*fp->f_ops->fo_stat)(fp, sb, active_cred)); in fo_stat()
410 return ((*fp->f_ops->fo_close)(fp, td)); in fo_close()
417 return ((*fp->f_ops->fo_kqfilter)(fp, kn)); in fo_kqfilter()
425 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.c154 f->f_ops = NULL; in open()
215 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.h204 struct fs_ops *f_ops; /* pointer to file system operations */ member
H A Dcd9660.c700 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.c87 if (fp->f_ops == &badfileops) { in zfs_file_open()
231 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in zfs_file_seek()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dfile.h64 file->f_ops != &linuxfileops) { in linux_fget()
/freebsd/sys/kern/
H A Dkern_descrip.c655 if (fp->f_ops == &path_fileops) { in kern_fcntl()
740 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
845 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
901 if (fp->f_type != DTYPE_VNODE || fp->f_ops == &path_fileops) { in kern_fcntl()
1415 if (fp->f_ops->fo_fdclose != NULL) in closefp_impl()
1416 fp->f_ops->fo_fdclose(fp, fd, td); in closefp_impl()
2241 fp->f_ops = &badfileops; in _falloc_noinstall()
2555 ops = ofde->fde_file->f_ops; in fdcopy()
2588 ops = nfde->fde_file->f_ops; in fdcopy()
3031 atomic_store_rel_ptr((volatile uintptr_t *)&fp->f_ops, (uintptr_t)ops); in finit()
[all …]
H A Dsys_eventfd.c139 if (fp->f_data == NULL || fp->f_ops != &eventfdops) in eventfd_get()
H A Dsys_procdesc.c364 fp->f_ops = &badfileops; in procdesc_close()
H A Dvfs_syscalls.c1205 if (fp->f_ops == &badfileops) { in finit_open()
1271 if (error == ENXIO && fp->f_ops != &badfileops) { in openatfp()
2137 error = (fp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0 ? in kern_lseek()
4476 if (__predict_false(fp->f_vnode == NULL || fp->f_ops == &badfileops)) { in getvnode_path()
4505 if (__predict_false((*fpp)->f_ops == &path_fileops)) { in getvnode()
4771 KASSERT(fp->f_ops == &badfileops, in kern_fhopen()
4941 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fadvise()
5076 if (infp->f_ops == &badfileops) { in kern_copy_file_range()
5088 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()
862 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_posix_fallocate()
930 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) { in kern_fspacectl()
H A Dsys_timerfd.c342 fp->f_ops = &badfileops; in timerfd_close()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clkrpc.c204 fp->f_ops = &badfileops; in nfscbd_addsock()
/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.c2484 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_fallback()
2491 seekable = (ofp->f_ops->fo_flags & DFLAG_SEEKABLE) != 0; in sendfile_fallback()
2561 if ((fp->f_ops->fo_flags & DFLAG_SEEKABLE) == 0) in sendfile_sendfile()

12