fifonode.h revision 71a535e3b24d87fb6be3793380f86bd09f2768ac
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.15 */ 2N/A * This is also the hierarchy 2N/A * flk_lock protects: 2N/A * ftable lock protects - actually this is independent int flk_ref;
/* number of fifonodes using this */ struct msgb *
fn_mp;
/* message waiting to be read */ * Valid flags for fifonodes. #
define ISPIPE 0x0001 /* fifonode is that of a pipe */#
define FIFOSEND 0x0002 /* file descriptor at stream head of pipe */#
define FIFOOPEN 0x0004 /* fifo is opening */#
define FIFOCLOSE 0x0008 /* fifo is closing */#
define FIFOCONNLD 0x0010 /* connld pushed on pipe */#
define FIFOFAST 0x0020 /* FIFO in fast mode */#
define FIFOWANTR 0x0040 /* reader waiting for data */#
define FIFOWANTW 0x0080 /* writer waiting to write */#
define FIFOSETSIG 0x0100 /* I_SETSIG ioctl was issued */#
define FIFOHIWATW 0x0200 /* We have gone over hi water mark */#
define FIFORWBUSY 0x0400 /* Fifo is busy in read or write */#
define FIFOPOLLW 0x0800 /* process waiting on poll write */#
define FIFOPOLLR 0x1000 /* process waiting on poll read */#
define FIFOSYNC 0x4000 /* FIFO is waiting for open sync */#
define FIFOWOCR 0x8000 /* Write open occurred */#
define FIFOROCR 0x10000 /* Read open occurred */ * process waiting on poll read on band data * this can only occur if we go to streams #
define FIFOSTAYFAST 0x40000 /* don't turn into stream mode */#
define FIFOWAITMODE 0x80000 /* waiting for the possibility to change mode */ * Macros to convert a vnode to a fifnode, and vice versa. * Fifohiwat defined as a variable is to allow tuning of the high * water mark if needed. It is not meant to be released. #
endif /* _SYS_FS_FIFONODE_H */