Lines Matching refs:ap

76 static int vop_stdis_text(struct vop_is_text_args *ap);
77 static int vop_stdunset_text(struct vop_unset_text_args *ap);
78 static int vop_stdadd_writecount(struct vop_add_writecount_args *ap);
79 static int vop_stdcopy_file_range(struct vop_copy_file_range_args *ap);
80 static int vop_stdfdatasync(struct vop_fdatasync_args *ap);
81 static int vop_stdgetpages_async(struct vop_getpages_async_args *ap);
82 static int vop_stdread_pgcache(struct vop_read_pgcache_args *ap);
83 static int vop_stdstat(struct vop_stat_args *ap);
84 static int vop_stdvput_pair(struct vop_vput_pair_args *ap);
85 static int vop_stdgetlowvnode(struct vop_getlowvnode_args *ap);
157 vop_eopnotsupp(struct vop_generic_args *ap) in vop_eopnotsupp() argument
167 vop_ebadf(struct vop_generic_args *ap) in vop_ebadf() argument
174 vop_enotty(struct vop_generic_args *ap) in vop_enotty() argument
181 vop_einval(struct vop_generic_args *ap) in vop_einval() argument
188 vop_enoent(struct vop_generic_args *ap) in vop_enoent() argument
195 vop_eagain(struct vop_generic_args *ap) in vop_eagain() argument
202 vop_null(struct vop_generic_args *ap) in vop_null() argument
212 vop_panic(struct vop_generic_args *ap) in vop_panic() argument
215 panic("filesystem goof: vop_panic[%s]", ap->a_desc->vdesc_name); in vop_panic()
231 vop_nolookup(struct vop_lookup_args *ap) in vop_nolookup() argument
234 *ap->a_vpp = NULL; in vop_nolookup()
245 vop_norename(struct vop_rename_args *ap) in vop_norename() argument
248 vop_rename_fail(ap); in vop_norename()
265 vop_nostrategy (struct vop_strategy_args *ap) in vop_nostrategy() argument
267 printf("No strategy for buffer at %p\n", ap->a_bp); in vop_nostrategy()
268 vn_printf(ap->a_vp, "vnode "); in vop_nostrategy()
269 ap->a_bp->b_ioflags |= BIO_ERROR; in vop_nostrategy()
270 ap->a_bp->b_error = EOPNOTSUPP; in vop_nostrategy()
271 bufdone(ap->a_bp); in vop_nostrategy()
329 vop_stdaccess(struct vop_access_args *ap) in vop_stdaccess() argument
332 KASSERT((ap->a_accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | in vop_stdaccess()
335 return (VOP_ACCESSX(ap->a_vp, ap->a_accmode, ap->a_cred, ap->a_td)); in vop_stdaccess()
339 vop_stdaccessx(struct vop_accessx_args *ap) in vop_stdaccessx() argument
342 accmode_t accmode = ap->a_accmode; in vop_stdaccessx()
351 return (VOP_ACCESS(ap->a_vp, accmode, ap->a_cred, ap->a_td)); in vop_stdaccessx()
358 vop_stdadvlock(struct vop_advlock_args *ap) in vop_stdadvlock() argument
365 vp = ap->a_vp; in vop_stdadvlock()
373 ap->a_op == F_SETLK && (ap->a_flags & F_FIRSTOPEN) == 0) { in vop_stdadvlock()
380 if (ap->a_fl->l_whence == SEEK_END) { in vop_stdadvlock()
395 return (lf_advlock(ap, &(vp->v_lockf), vattr.va_size)); in vop_stdadvlock()
399 vop_stdadvlockasync(struct vop_advlockasync_args *ap) in vop_stdadvlockasync() argument
405 vp = ap->a_vp; in vop_stdadvlockasync()
406 if (ap->a_fl->l_whence == SEEK_END) { in vop_stdadvlockasync()
416 return (lf_advlockasync(ap, &(vp->v_lockf), vattr.va_size)); in vop_stdadvlockasync()
420 vop_stdadvlockpurge(struct vop_advlockpurge_args *ap) in vop_stdadvlockpurge() argument
424 vp = ap->a_vp; in vop_stdadvlockpurge()
438 vop_stdpathconf(struct vop_pathconf_args *ap) in vop_stdpathconf() argument
441 switch (ap->a_name) { in vop_stdpathconf()
443 *ap->a_retval = _POSIX_ASYNCHRONOUS_IO; in vop_stdpathconf()
446 *ap->a_retval = PATH_MAX; in vop_stdpathconf()
455 *ap->a_retval = 0; in vop_stdpathconf()
467 vop_stdlock(struct vop_lock1_args *ap) in vop_stdlock() argument
469 struct vnode *vp = ap->a_vp; in vop_stdlock()
473 return (lockmgr_lock_flags(vp->v_vnlock, ap->a_flags, in vop_stdlock()
474 &ilk->lock_object, ap->a_file, ap->a_line)); in vop_stdlock()
479 vop_stdunlock(struct vop_unlock_args *ap) in vop_stdunlock() argument
481 struct vnode *vp = ap->a_vp; in vop_stdunlock()
488 vop_stdislocked(struct vop_islocked_args *ap) in vop_stdislocked() argument
491 return (lockstatus(ap->a_vp->v_vnlock)); in vop_stdislocked()
502 vop_lock(struct vop_lock1_args *ap) in vop_lock() argument
504 struct vnode *vp = ap->a_vp; in vop_lock()
505 int flags = ap->a_flags; in vop_lock()
515 return (lockmgr_slock(&vp->v_lock, flags, ap->a_file, ap->a_line)); in vop_lock()
517 return (lockmgr_xlock(&vp->v_lock, flags, ap->a_file, ap->a_line)); in vop_lock()
522 &ilk->lock_object, ap->a_file, ap->a_line)); in vop_lock()
526 vop_unlock(struct vop_unlock_args *ap) in vop_unlock() argument
528 struct vnode *vp = ap->a_vp; in vop_unlock()
536 vop_islocked(struct vop_islocked_args *ap) in vop_islocked() argument
538 struct vnode *vp = ap->a_vp; in vop_islocked()
549 vop_nopoll(struct vop_poll_args *ap) in vop_nopoll() argument
552 if (ap->a_events & ~POLLSTANDARD) in vop_nopoll()
554 return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)); in vop_nopoll()
561 vop_stdpoll(struct vop_poll_args *ap) in vop_stdpoll() argument
563 if (ap->a_events & ~POLLSTANDARD) in vop_stdpoll()
564 return (vn_pollrecord(ap->a_vp, ap->a_td, ap->a_events)); in vop_stdpoll()
565 return (ap->a_events & (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM)); in vop_stdpoll()
572 vop_stdgetwritemount(struct vop_getwritemount_args *ap) in vop_stdgetwritemount() argument
586 vp = ap->a_vp; in vop_stdgetwritemount()
588 *(ap->a_mpp) = mp; in vop_stdgetwritemount()
600 vop_stdbmap(struct vop_bmap_args *ap) in vop_stdbmap() argument
603 if (ap->a_bop != NULL) in vop_stdbmap()
604 *ap->a_bop = &ap->a_vp->v_bufobj; in vop_stdbmap()
605 if (ap->a_bnp != NULL) in vop_stdbmap()
606 *ap->a_bnp = ap->a_bn * btodb(ap->a_vp->v_mount->mnt_stat.f_iosize); in vop_stdbmap()
607 if (ap->a_runp != NULL) in vop_stdbmap()
608 *ap->a_runp = 0; in vop_stdbmap()
609 if (ap->a_runb != NULL) in vop_stdbmap()
610 *ap->a_runb = 0; in vop_stdbmap()
615 vop_stdfsync(struct vop_fsync_args *ap) in vop_stdfsync() argument
618 return (vn_fsync_buf(ap->a_vp, ap->a_waitfor)); in vop_stdfsync()
622 vop_stdfdatasync(struct vop_fdatasync_args *ap) in vop_stdfdatasync() argument
625 return (VOP_FSYNC(ap->a_vp, MNT_WAIT, ap->a_td)); in vop_stdfdatasync()
629 vop_stdfdatasync_buf(struct vop_fdatasync_args *ap) in vop_stdfdatasync_buf() argument
632 return (vn_fsync_buf(ap->a_vp, MNT_WAIT)); in vop_stdfdatasync_buf()
637 vop_stdgetpages(struct vop_getpages_args *ap) in vop_stdgetpages() argument
640 return vnode_pager_generic_getpages(ap->a_vp, ap->a_m, in vop_stdgetpages()
641 ap->a_count, ap->a_rbehind, ap->a_rahead, NULL, NULL); in vop_stdgetpages()
645 vop_stdgetpages_async(struct vop_getpages_async_args *ap) in vop_stdgetpages_async() argument
649 error = VOP_GETPAGES(ap->a_vp, ap->a_m, ap->a_count, ap->a_rbehind, in vop_stdgetpages_async()
650 ap->a_rahead); in vop_stdgetpages_async()
651 if (ap->a_iodone != NULL) in vop_stdgetpages_async()
652 ap->a_iodone(ap->a_arg, ap->a_m, ap->a_count, error); in vop_stdgetpages_async()
657 vop_stdkqfilter(struct vop_kqfilter_args *ap) in vop_stdkqfilter() argument
659 return vfs_kqfilter(ap); in vop_stdkqfilter()
664 vop_stdputpages(struct vop_putpages_args *ap) in vop_stdputpages() argument
667 return vnode_pager_generic_putpages(ap->a_vp, ap->a_m, ap->a_count, in vop_stdputpages()
668 ap->a_sync, ap->a_rtvals); in vop_stdputpages()
672 vop_stdvptofh(struct vop_vptofh_args *ap) in vop_stdvptofh() argument
678 vop_stdvptocnp(struct vop_vptocnp_args *ap) in vop_stdvptocnp() argument
680 struct vnode *const vp = ap->a_vp; in vop_stdvptocnp()
681 struct vnode **const dvp = ap->a_vpp; in vop_stdvptocnp()
682 char *buf = ap->a_buf; in vop_stdvptocnp()
683 size_t *buflen = ap->a_buflen; in vop_stdvptocnp()
808 vop_stdallocate(struct vop_allocate_args *ap) in vop_stdallocate() argument
828 vp = ap->a_vp; in vop_stdallocate()
829 len = *ap->a_len; in vop_stdallocate()
830 offset = *ap->a_offset; in vop_stdallocate()
832 error = VOP_GETATTR(vp, vap, ap->a_cred); in vop_stdallocate()
869 error = VOP_SETATTR(vp, vap, ap->a_cred); in vop_stdallocate()
874 error = VOP_SETATTR(vp, vap, ap->a_cred); in vop_stdallocate()
900 error = VOP_READ(vp, &auio, ap->a_ioflag, ap->a_cred); in vop_stdallocate()
921 error = VOP_WRITE(vp, &auio, ap->a_ioflag, ap->a_cred); in vop_stdallocate()
934 *ap->a_len = len; in vop_stdallocate()
935 *ap->a_offset = offset; in vop_stdallocate()
995 vop_stddeallocate(struct vop_deallocate_args *ap) in vop_stddeallocate() argument
1004 vp = ap->a_vp; in vop_stddeallocate()
1005 offset = *ap->a_offset; in vop_stddeallocate()
1006 cred = ap->a_cred; in vop_stddeallocate()
1012 len = omin((off_t)va.va_size - offset, *ap->a_len); in vop_stddeallocate()
1043 error = vp_zerofill(vp, &va, &offset, &rem, ap->a_ioflag, cred); in vop_stddeallocate()
1057 *ap->a_offset = offset; in vop_stddeallocate()
1058 *ap->a_len = len; in vop_stddeallocate()
1063 vop_stdadvise(struct vop_advise_args *ap) in vop_stdadvise() argument
1071 vp = ap->a_vp; in vop_stdadvise()
1072 switch (ap->a_advice) { in vop_stdadvise()
1099 bstart = rounddown(ap->a_start, bsize); in vop_stdadvise()
1100 bend = ap->a_end; in vop_stdadvise()
1135 vop_stdunp_bind(struct vop_unp_bind_args *ap) in vop_stdunp_bind() argument
1138 ap->a_vp->v_unpcb = ap->a_unpcb; in vop_stdunp_bind()
1143 vop_stdunp_connect(struct vop_unp_connect_args *ap) in vop_stdunp_connect() argument
1146 *ap->a_unpcb = ap->a_vp->v_unpcb; in vop_stdunp_connect()
1151 vop_stdunp_detach(struct vop_unp_detach_args *ap) in vop_stdunp_detach() argument
1154 ap->a_vp->v_unpcb = NULL; in vop_stdunp_detach()
1159 vop_stdis_text(struct vop_is_text_args *ap) in vop_stdis_text() argument
1162 return ((int)atomic_load_int(&ap->a_vp->v_writecount) < 0); in vop_stdis_text()
1166 vop_stdset_text(struct vop_set_text_args *ap) in vop_stdset_text() argument
1172 vp = ap->a_vp; in vop_stdset_text()
1210 vop_stdunset_text(struct vop_unset_text_args *ap) in vop_stdunset_text() argument
1215 vp = ap->a_vp; in vop_stdunset_text()
1245 vop_stdadd_writecount_impl(struct vop_add_writecount_args *ap, bool handle_msync) in vop_stdadd_writecount_impl() argument
1251 vp = ap->a_vp; in vop_stdadd_writecount_impl()
1270 VNASSERT(n + ap->a_inc >= 0, vp, in vop_stdadd_writecount_impl()
1271 ("neg writecount increment %d + %d = %d", n, ap->a_inc, in vop_stdadd_writecount_impl()
1272 n + ap->a_inc)); in vop_stdadd_writecount_impl()
1279 if (atomic_fcmpset_int(&vp->v_writecount, &n, n + ap->a_inc)) { in vop_stdadd_writecount_impl()
1287 vop_stdadd_writecount(struct vop_add_writecount_args *ap) in vop_stdadd_writecount() argument
1290 return (vop_stdadd_writecount_impl(ap, true)); in vop_stdadd_writecount()
1294 vop_stdadd_writecount_nomsync(struct vop_add_writecount_args *ap) in vop_stdadd_writecount_nomsync() argument
1297 return (vop_stdadd_writecount_impl(ap, false)); in vop_stdadd_writecount_nomsync()
1301 vop_stdneed_inactive(struct vop_need_inactive_args *ap) in vop_stdneed_inactive() argument
1308 vop_stdioctl(struct vop_ioctl_args *ap) in vop_stdioctl() argument
1315 switch (ap->a_command) { in vop_stdioctl()
1318 vp = ap->a_vp; in vop_stdioctl()
1323 error = VOP_GETATTR(vp, &va, ap->a_cred); in vop_stdioctl()
1327 offp = ap->a_data; in vop_stdioctl()
1330 else if (ap->a_command == FIOSEEKHOLE) in vop_stdioctl()
1409 vop_stdcopy_file_range(struct vop_copy_file_range_args *ap) in vop_stdcopy_file_range() argument
1413 error = vn_generic_copy_file_range(ap->a_invp, ap->a_inoffp, in vop_stdcopy_file_range()
1414 ap->a_outvp, ap->a_outoffp, ap->a_lenp, ap->a_flags, ap->a_incred, in vop_stdcopy_file_range()
1415 ap->a_outcred, ap->a_fsizetd); in vop_stdcopy_file_range()
1600 vop_stdread_pgcache(struct vop_read_pgcache_args *ap __unused) in vop_stdread_pgcache()
1606 vop_stdvput_pair(struct vop_vput_pair_args *ap) in vop_stdvput_pair() argument
1610 dvp = ap->a_dvp; in vop_stdvput_pair()
1611 vpp = ap->a_vpp; in vop_stdvput_pair()
1613 if (vpp != NULL && ap->a_unlock_vp && (vp = *vpp) != NULL) in vop_stdvput_pair()
1619 vop_stdgetlowvnode(struct vop_getlowvnode_args *ap) in vop_stdgetlowvnode() argument
1621 vref(ap->a_vp); in vop_stdgetlowvnode()
1622 *ap->a_vplp = ap->a_vp; in vop_stdgetlowvnode()