Home
last modified time | relevance | path

Searched refs:vp (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/dflybsd-src/sys/kern/
H A Dvfs_lock.c73 static void vnode_terminate(struct vnode *vp);
91 #define VLIST_HASH(vp) (((uintptr_t)vp ^ VLIST_XOR) % \ argument
148 _vsetflags(struct vnode *vp, int flags) in _vsetflags() argument
150 atomic_set_int(&vp->v_flag, flags); in _vsetflags()
155 _vclrflags(struct vnode *vp, int flags) in _vclrflags() argument
157 atomic_clear_int(&vp->v_flag, flags); in _vclrflags()
161 vsetflags(struct vnode *vp, int flags) in vsetflags() argument
163 _vsetflags(vp, flags); in vsetflags()
167 vclrflags(struct vnode *vp, int flags) in vclrflags() argument
169 _vclrflags(vp, flags); in vclrflags()
[all …]
H A Dvfs_subr.c125 static void vclean_vxlocked(struct vnode *vp, int flags);
305 struct vnode *vp; member
313 vinvalbuf(struct vnode *vp, int flags, int slpflag, int slptimeo) in vinvalbuf() argument
319 lwkt_gettoken(&vp->v_token); in vinvalbuf()
326 error = bio_track_wait(&vp->v_track_write, slpflag, slptimeo); in vinvalbuf()
329 if (!RB_EMPTY(&vp->v_rbdirty_tree)) { in vinvalbuf()
330 if ((error = VOP_FSYNC(vp, MNT_WAIT, 0)) != 0) in vinvalbuf()
339 if ((vp->v_flag & VRECLAIMED) && in vinvalbuf()
340 (bio_track_active(&vp->v_track_write) || in vinvalbuf()
341 !RB_EMPTY(&vp->v_rbdirty_tree))) { in vinvalbuf()
[all …]
H A Dvfs_sync.c195 vn_syncer_add(struct vnode *vp, int delay) in vn_syncer_add() argument
200 ctx = vp->v_mount->mnt_syncer_ctx; in vn_syncer_add()
203 if (vp->v_flag & VONWORKLST) { in vn_syncer_add()
204 LIST_REMOVE(vp, v_synclist); in vn_syncer_add()
215 LIST_INSERT_HEAD(&ctx->syncer_workitem_pending[slot], vp, v_synclist); in vn_syncer_add()
216 vsetflags(vp, VONWORKLST); in vn_syncer_add()
232 vn_syncer_remove(struct vnode *vp, int force) in vn_syncer_remove() argument
236 ctx = vp->v_mount->mnt_syncer_ctx; in vn_syncer_remove()
239 if ((vp->v_flag & (VISDIRTY | VONWORKLST | VOBJDIRTY)) == VONWORKLST && in vn_syncer_remove()
240 RB_EMPTY(&vp->v_rbdirty_tree)) { in vn_syncer_remove()
[all …]
H A Dvfs_vnops.c105 struct vnode *vp; in vn_open() local
212 error = VOP_NCREATE(&nd->nl_nch, nd->nl_dvp, &vp, in vn_open()
223 LK_EXCLUSIVE, &vp); in vn_open()
244 error = cache_vget(&nd->nl_nch, cred, LK_SHARED, &vp); in vn_open()
248 LK_EXCLUSIVE, &vp); in vn_open()
258 if (vp->v_type == VLNK) { in vn_open()
262 if (vp->v_type == VSOCK) { in vn_open()
266 if (vp->v_type != VDIR && (fmode & O_DIRECTORY)) { in vn_open()
272 if (vp->v_type == VDIR) { in vn_open()
281 error = vn_writechk(vp); in vn_open()
[all …]
/dflybsd-src/contrib/nvi2/vi/
H A Dv_left.c30 v_left(SCR *sp, VICMD *vp) in v_left() argument
38 if (vp->m_start.cno == 0) { in v_left()
44 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_left()
45 if (vp->m_start.cno > cnt) in v_left()
46 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
48 vp->m_stop.cno = 0; in v_left()
55 if (ISMOTION(vp)) in v_left()
56 --vp->m_start.cno; in v_left()
57 vp->m_final = vp->m_stop; in v_left()
68 v_cfirst(SCR *sp, VICMD *vp) in v_cfirst() argument
[all …]
H A Dv_scroll.c66 v_lgoto(SCR *sp, VICMD *vp) in v_lgoto() argument
70 if (F_ISSET(vp, VC_C1SET)) { in v_lgoto()
71 if (!db_exist(sp, vp->count)) { in v_lgoto()
76 if (vp->count == 1) { in v_lgoto()
82 v_eof(sp, &vp->m_start); in v_lgoto()
85 vp->m_stop.lno = vp->count; in v_lgoto()
89 vp->m_stop.lno = nlines ? nlines : 1; in v_lgoto()
91 goto_adjust(vp); in v_lgoto()
103 v_home(SCR *sp, VICMD *vp) in v_home() argument
105 if (vs_sm_position(sp, &vp->m_stop, in v_home()
[all …]
H A Dv_itxt.c65 v_iA(SCR *sp, VICMD *vp) in v_iA() argument
69 if (!db_get(sp, vp->m_start.lno, 0, NULL, &len)) in v_iA()
74 return (v_ia(sp, vp)); in v_iA()
85 v_ia(SCR *sp, VICMD *vp) in v_ia() argument
92 flags = set_txt_std(sp, vp, 0); in v_ia()
94 sp->lno = vp->m_start.lno; in v_ia()
111 return (v_txt(sp, vp, NULL, p, len, in v_ia()
112 0, OOBLNO, F_ISSET(vp, VC_C1SET) ? vp->count : 1, flags)); in v_ia()
122 v_iI(SCR *sp, VICMD *vp) in v_iI() argument
125 if (nonblank(sp, vp->m_start.lno, &sp->cno)) in v_iI()
[all …]
H A Dv_mark.c34 v_mark(SCR *sp, VICMD *vp) in v_mark() argument
36 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark()
55 v_bmark(SCR *sp, VICMD *vp) in v_bmark() argument
57 return (mark(sp, vp, 1, BQMARK)); in v_bmark()
69 v_fmark(SCR *sp, VICMD *vp) in v_fmark() argument
71 return (mark(sp, vp, 1, FQMARK)); in v_fmark()
81 v_emark(SCR *sp, VICMD *vp) in v_emark() argument
85 smp = HMAP + vp->ev.e_lno; in v_emark()
90 vp->m_stop.lno = smp->lno; in v_emark()
91 vp->m_stop.cno = in v_emark()
[all …]
H A Dv_right.c30 v_right(SCR *sp, VICMD *vp) in v_right() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right()
56 vp->m_stop.cno = vp->m_start.cno + in v_right()
57 (F_ISSET(vp, VC_C1SET) ? vp->count : 1); in v_right()
58 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right()
62 if (vp->m_stop.cno >= len) { in v_right()
63 vp->m_stop.cno = len - 1; in v_right()
64 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right()
65 } else if (ISMOTION(vp)) { in v_right()
66 --vp->m_stop.cno; in v_right()
[all …]
H A Dv_paragraph.c63 v_paragraphf(SCR *sp, VICMD *vp) in v_paragraphf() argument
86 if (ISMOTION(vp)) in v_paragraphf()
87 if (vp->m_start.cno == 0) in v_paragraphf()
88 F_SET(vp, VM_LMODE); in v_paragraphf()
90 vp->m_stop = vp->m_start; in v_paragraphf()
91 vp->m_stop.cno = 0; in v_paragraphf()
92 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_paragraphf()
94 if (vp->m_start.cno <= vp->m_stop.cno) in v_paragraphf()
95 F_SET(vp, VM_LMODE); in v_paragraphf()
99 lno = vp->m_start.lno; in v_paragraphf()
[all …]
H A Dv_section.c61 v_sectionf(SCR *sp, VICMD *vp) in v_sectionf() argument
80 if (ISMOTION(vp)) in v_sectionf()
81 if (vp->m_start.cno == 0) in v_sectionf()
82 F_SET(vp, VM_LMODE); in v_sectionf()
84 vp->m_stop = vp->m_start; in v_sectionf()
85 vp->m_stop.cno = 0; in v_sectionf()
86 if (nonblank(sp, vp->m_stop.lno, &vp->m_stop.cno)) in v_sectionf()
88 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf()
89 F_SET(vp, VM_LMODE); in v_sectionf()
92 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sectionf()
[all …]
H A Dv_search.c37 v_searchb(SCR *sp, VICMD *vp) in v_searchb() argument
39 return (v_exaddr(sp, vp, BACKWARD)); in v_searchb()
49 v_searchf(SCR *sp, VICMD *vp) in v_searchf() argument
51 return (v_exaddr(sp, vp, FORWARD)); in v_searchf()
59 v_exaddr(SCR *sp, VICMD *vp, dir_t dir) in v_exaddr() argument
78 if (F_ISSET(vp, VC_ISDOT)) in v_exaddr()
79 return (v_search(sp, vp, in v_exaddr()
83 if (v_tcmd(sp, vp, dir == BACKWARD ? CH_BSEARCH : CH_FSEARCH, in v_exaddr()
100 vp->m_stop.lno = sp->lno; in v_exaddr()
101 vp->m_stop.cno = sp->cno; in v_exaddr()
[all …]
H A Dv_word.c76 v_wordW(SCR *sp, VICMD *vp) in v_wordW() argument
78 return (fword(sp, vp, BIGWORD)); in v_wordW()
88 v_wordw(SCR *sp, VICMD *vp) in v_wordw() argument
90 return (fword(sp, vp, LITTLEWORD)); in v_wordw()
98 fword(SCR *sp, VICMD *vp, enum which type) in fword() argument
104 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in fword()
105 cs.cs_lno = vp->m_start.lno; in fword()
106 cs.cs_cno = vp->m_start.cno; in fword()
118 if (ISMOTION(vp) && cs.cs_flags != CS_EMP && cnt == 1) { in fword()
119 if (ISCMD(vp->rkp, 'c')) in fword()
[all …]
H A Dv_ch.c34 v_chrepeat(SCR *sp, VICMD *vp) in v_chrepeat() argument
36 vp->character = VIP(sp)->lastckey; in v_chrepeat()
43 return (v_chF(sp, vp)); in v_chrepeat()
45 return (v_chf(sp, vp)); in v_chrepeat()
47 return (v_chT(sp, vp)); in v_chrepeat()
49 return (v_cht(sp, vp)); in v_chrepeat()
63 v_chrrepeat(SCR *sp, VICMD *vp) in v_chrrepeat() argument
68 vp->character = VIP(sp)->lastckey; in v_chrrepeat()
76 rval = v_chf(sp, vp); in v_chrrepeat()
79 rval = v_chF(sp, vp); in v_chrrepeat()
[all …]
H A Dv_xchar.c30 v_xchar(SCR *sp, VICMD *vp) in v_xchar() argument
35 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_xchar()
54 if (F_ISSET(vp, VC_C1SET)) in v_xchar()
55 vp->m_stop.cno += vp->count - 1; in v_xchar()
56 if (vp->m_stop.cno >= len - 1) { in v_xchar()
57 vp->m_stop.cno = len - 1; in v_xchar()
58 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar()
60 vp->m_final.cno = vp->m_start.cno; in v_xchar()
63 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_xchar()
64 &vp->m_start, &vp->m_stop, 0)) in v_xchar()
[all …]
H A Dvi.c65 VICMD cmd = { 0 }, *vp; in vi() local
74 vp = &cmd; in vi()
77 F_SET(vp, VM_RCM_SET); in vi()
104 if (F_ISSET(vp, VM_RCM_SET | VM_RCM_SETFNB | VM_RCM_SETNNB)) { in vi()
128 vp->kp = &vikeys[':']; in vi()
133 memset(vp, 0, sizeof(VICMD)); in vi()
148 switch (v_cmd(sp, DOT, vp, NULL, &comcount, &mapped)) { in vi()
164 if (F_ISSET(vp->kp, V_SECURE) && O_ISSET(sp, O_SECURE)) { in vi()
165 ex_emsg(sp, KEY_NAME(sp, vp->key), EXM_SECURE); in vi()
174 if (F_ISSET(vp, VC_ISDOT) && comcount) in vi()
[all …]
H A Dv_sentence.c51 v_sentencef(SCR *sp, VICMD *vp) in v_sentencef() argument
58 cs.cs_lno = vp->m_start.lno; in v_sentencef()
59 cs.cs_cno = vp->m_start.cno; in v_sentencef()
63 cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; in v_sentencef()
75 if (vp->m_start.lno != cs.cs_lno || in v_sentencef()
76 vp->m_start.cno != cs.cs_cno) in v_sentencef()
144 if (vp->m_start.lno == cs.cs_lno && vp->m_start.cno == cs.cs_cno) { in v_sentencef()
149 okret: vp->m_stop.lno = cs.cs_lno; in v_sentencef()
150 vp->m_stop.cno = cs.cs_cno; in v_sentencef()
165 if (ISMOTION(vp)) { in v_sentencef()
[all …]
H A Dv_put.c32 v_Put(SCR *sp, VICMD *vp) in v_Put() argument
36 if (F_ISSET(vp, VC_ISDOT)) in v_Put()
37 inc_buf(sp, vp); in v_Put()
44 for (cnt = F_ISSET(vp, VC_C1SET) ? vp->count : 1; cnt--;) { in v_Put()
46 F_ISSET(vp, VC_BUFFER) ? &vp->buffer : NULL, in v_Put()
47 &vp->m_start, &vp->m_final, 0)) in v_Put()
49 vp->m_start = vp->m_final; in v_Put()
63 v_put(SCR *sp, VICMD *vp) in v_put() argument
67 if (F_ISSET(vp, VC_ISDOT)) in v_put()
68 inc_buf(sp, vp); in v_put()
[all …]
/dflybsd-src/bin/sh/
H A Dvar.c163 struct var *vp; in initvar() local
167 for (ip = varinit ; (vp = ip->var) != NULL ; ip++) { in initvar()
168 if (find_var(ip->text, &vpp, &vp->name_len) != NULL) in initvar()
170 vp->next = *vpp; in initvar()
171 *vpp = vp; in initvar()
172 vp->text = __DECONST(char *, ip->text); in initvar()
173 vp->flags = ip->flags | VSTRFIXED | VTEXTFIXED; in initvar()
174 vp->func = ip->func; in initvar()
326 struct var *vp, **vpp; in setvareq() local
333 vp = find_var(s, &vpp, &nlen); in setvareq()
[all …]
/dflybsd-src/contrib/awk/
H A Dtran.c295 Awkfloat setfval(Cell *vp, Awkfloat f) /* set float val of a Cell */ in setfval() argument
300 if ((vp->tval & (NUM | STR)) == 0) in setfval()
301 funnyvar(vp, "assign to"); in setfval()
302 if (isfld(vp)) { in setfval()
304 fldno = atoi(vp->nval); in setfval()
308 } else if (&vp->fval == NF) { in setfval()
312 } else if (isrec(vp)) { in setfval()
316 } else if (vp == ofsloc) { in setfval()
320 if (freeable(vp)) in setfval()
321 xfree(vp->sval); /* free any previous string */ in setfval()
[all …]
/dflybsd-src/contrib/tcsh-6/
H A Dsh.exp.c181 expr(Char ***vp) in expr() argument
183 return (exp0(vp, 0)); in expr()
187 exp0(Char ***vp, int ignore) in exp0() argument
189 tcsh_number_t p1 = exp1(vp, ignore); in exp0()
191 etraci("exp0 p1", p1, vp); in exp0()
192 while (**vp && eq(**vp, STRor2)) { in exp0()
195 (*vp)++; in exp0()
198 exp0(vp, (ignore & TEXP_IGNORE) || p1) : in exp0()
199 exp1(vp, (ignore & TEXP_IGNORE) || p1); in exp0()
202 etraci("exp0 p1", p1, vp); in exp0()
[all …]
/dflybsd-src/sys/sys/
H A Dvfsops.h779 int vop_open(struct vop_ops *ops, struct vnode *vp, int mode,
781 int vop_close(struct vop_ops *ops, struct vnode *vp, int fflag,
783 int vop_access(struct vop_ops *ops, struct vnode *vp, int mode, int flags,
785 int vop_getattr(struct vop_ops *ops, struct vnode *vp, struct vattr *vap,
787 int vop_getattr_lite(struct vop_ops *ops, struct vnode *vp,
789 int vop_setattr(struct vop_ops *ops, struct vnode *vp, struct vattr *vap,
791 int vop_read(struct vop_ops *ops, struct vnode *vp, struct uio *uio,
793 int vop_write(struct vop_ops *ops, struct vnode *vp, struct uio *uio,
795 int vop_ioctl(struct vop_ops *ops, struct vnode *vp, u_long command,
798 int vop_poll(struct vop_ops *ops, struct vnode *vp, int events,
[all …]
/dflybsd-src/sys/ddb/
H A Ddb_variables.c60 struct db_variable *vp; in db_find_variable() local
64 for (vp = db_vars; vp < db_evars; vp++) { in db_find_variable()
65 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
66 *varp = vp; in db_find_variable()
70 for (vp = db_regs; vp < db_eregs; vp++) { in db_find_variable()
71 if (!strcmp(db_tok_string, vp->name)) { in db_find_variable()
72 *varp = vp; in db_find_variable()
84 struct db_variable *vp; in db_get_variable() local
86 if (!db_find_variable(&vp)) in db_get_variable()
89 db_read_variable(vp, valuep); in db_get_variable()
[all …]
/dflybsd-src/sys/vfs/fifofs/
H A Dfifo_vnops.c132 fifo_lock(struct vnode *vp) in fifo_lock() argument
136 hv = ((intptr_t)vp / sizeof(*vp)) & FIFO_LOCK_MASK; in fifo_lock()
142 fifo_unlock(struct vnode *vp) in fifo_unlock() argument
146 hv = ((intptr_t)vp / sizeof(*vp)) & FIFO_LOCK_MASK; in fifo_unlock()
248 struct vnode *vp = ap->a_vp; in fifo_open() local
257 fifo_lock(vp); in fifo_open()
258 if ((fip = vp->v_fifoinfo) == NULL) { in fifo_open()
261 fifo_unlock(vp); in fifo_open()
264 vp->v_fifoinfo = fip; in fifo_open()
297 fifo_unlock(vp); in fifo_open()
[all …]
/dflybsd-src/sys/vm/
H A Dvnode_pager.c106 struct vnode *vp; in vnode_pager_alloc() local
126 vp = (struct vnode *)handle; in vnode_pager_alloc()
127 lwkt_gettoken(&vp->v_token); in vnode_pager_alloc()
133 object = vp->v_object; in vnode_pager_alloc()
139 if (VREFCNT(vp) <= 0) in vnode_pager_alloc()
163 vp->v_object = object; in vnode_pager_alloc()
164 vp->v_filesize = length; in vnode_pager_alloc()
165 if (vp->v_mount && (vp->v_mount->mnt_kern_flag & MNTK_NOMSYNC)) in vnode_pager_alloc()
167 vref(vp); in vnode_pager_alloc()
175 vp, object); in vnode_pager_alloc()
[all …]

12345678910>>...16