vnode.h (133459) | vnode.h (133741) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)vnode.h 8.7 (Berkeley) 2/4/94 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)vnode.h 8.7 (Berkeley) 2/4/94 |
30 * $FreeBSD: head/sys/sys/vnode.h 133459 2004-08-10 23:52:45Z rwatson $ | 30 * $FreeBSD: head/sys/sys/vnode.h 133741 2004-08-15 06:24:42Z jmg $ |
31 */ 32 33#ifndef _SYS_VNODE_H_ 34#define _SYS_VNODE_H_ 35 36/* 37 * XXX - compatability until lockmgr() goes away or all the #includes are 38 * updated. --- 157 unchanged lines hidden (view full) --- 196 197#define VN_POLLEVENT(vp, events) \ 198 do { \ 199 if ((vp)->v_pollinfo != NULL && \ 200 (vp)->v_pollinfo->vpi_events & (events)) \ 201 vn_pollevent((vp), (events)); \ 202 } while (0) 203 | 31 */ 32 33#ifndef _SYS_VNODE_H_ 34#define _SYS_VNODE_H_ 35 36/* 37 * XXX - compatability until lockmgr() goes away or all the #includes are 38 * updated. --- 157 unchanged lines hidden (view full) --- 196 197#define VN_POLLEVENT(vp, events) \ 198 do { \ 199 if ((vp)->v_pollinfo != NULL && \ 200 (vp)->v_pollinfo->vpi_events & (events)) \ 201 vn_pollevent((vp), (events)); \ 202 } while (0) 203 |
204#define VN_KNOTE(vp, b) \ | 204#define VN_KNOTE(vp, b, a) \ |
205 do { \ 206 if ((vp)->v_pollinfo != NULL) \ | 205 do { \ 206 if ((vp)->v_pollinfo != NULL) \ |
207 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b)); \ | 207 KNOTE(&vp->v_pollinfo->vpi_selinfo.si_note, (b), (a)); \ |
208 } while (0) | 208 } while (0) |
209#define VN_KNOTE_LOCKED(vp, b) VN_KNOTE(vp, b, 1) 210#define VN_KNOTE_UNLOCKED(vp, b) VN_KNOTE(vp, b, 0) |
|
209 210/* 211 * Vnode flags. 212 * VI flags are protected by interlock and live in v_iflag 213 * VV flags are protected by the vnode lock and live in v_vflag 214 */ 215#define VI_XLOCK 0x0001 /* vnode is locked to change vtype */ 216#define VI_XWANT 0x0002 /* thread is waiting for vnode */ --- 511 unchanged lines hidden --- | 211 212/* 213 * Vnode flags. 214 * VI flags are protected by interlock and live in v_iflag 215 * VV flags are protected by the vnode lock and live in v_vflag 216 */ 217#define VI_XLOCK 0x0001 /* vnode is locked to change vtype */ 218#define VI_XWANT 0x0002 /* thread is waiting for vnode */ --- 511 unchanged lines hidden --- |