Deleted Added
full compact
fifo_vnops.c (232641) fifo_vnops.c (232821)
1/*-
2 * Copyright (c) 1990, 1993, 1995
3 * The Regents of the University of California.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * Copyright (c) 2012 Giovanni Trematerra
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95
1/*-
2 * Copyright (c) 1990, 1993, 1995
3 * The Regents of the University of California.
4 * Copyright (c) 2005 Robert N. M. Watson
5 * Copyright (c) 2012 Giovanni Trematerra
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 16 unchanged lines hidden (view full) ---

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95
33 * $FreeBSD: head/sys/fs/fifofs/fifo_vnops.c 232641 2012-03-07 07:31:50Z kib $
33 * $FreeBSD: head/sys/fs/fifofs/fifo_vnops.c 232821 2012-03-11 12:19:58Z kib $
34 */
35
36#include <sys/param.h>
37#include <sys/event.h>
38#include <sys/file.h>
39#include <sys/filedesc.h>
40#include <sys/filio.h>
41#include <sys/fcntl.h>

--- 5 unchanged lines hidden (view full) ---

47#include <sys/pipe.h>
48#include <sys/proc.h>
49#include <sys/signalvar.h>
50#include <sys/sx.h>
51#include <sys/systm.h>
52#include <sys/un.h>
53#include <sys/unistd.h>
54#include <sys/vnode.h>
34 */
35
36#include <sys/param.h>
37#include <sys/event.h>
38#include <sys/file.h>
39#include <sys/filedesc.h>
40#include <sys/filio.h>
41#include <sys/fcntl.h>

--- 5 unchanged lines hidden (view full) ---

47#include <sys/pipe.h>
48#include <sys/proc.h>
49#include <sys/signalvar.h>
50#include <sys/sx.h>
51#include <sys/systm.h>
52#include <sys/un.h>
53#include <sys/unistd.h>
54#include <sys/vnode.h>
55#include <fs/fifofs/fifo.h>
56
57/*
58 * This structure is associated with the FIFO vnode and stores
59 * the state associated with the FIFO.
60 * Notes about locking:
61 * - fi_pipe is invariant since init time.
62 * - fi_readers and fi_writers are protected by the vnode lock.
63 * - fi_wgen is protected by the pipe mutex.

--- 323 unchanged lines hidden ---
55
56/*
57 * This structure is associated with the FIFO vnode and stores
58 * the state associated with the FIFO.
59 * Notes about locking:
60 * - fi_pipe is invariant since init time.
61 * - fi_readers and fi_writers are protected by the vnode lock.
62 * - fi_wgen is protected by the pipe mutex.

--- 323 unchanged lines hidden ---