[BACK]Return to rf_mcpair.h CVS log [TXT][DIR] Up to [local] / sys / dev / raidframe

Annotation of sys/dev/raidframe/rf_mcpair.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: rf_mcpair.h,v 1.4 2002/12/16 07:01:04 tdeval Exp $    */
                      2: /*     $NetBSD: rf_mcpair.h,v 1.4 1999/03/14 21:53:31 oster Exp $      */
                      3:
                      4: /*
                      5:  * Copyright (c) 1995 Carnegie-Mellon University.
                      6:  * All rights reserved.
                      7:  *
                      8:  * Author: Mark Holland
                      9:  *
                     10:  * Permission to use, copy, modify and distribute this software and
                     11:  * its documentation is hereby granted, provided that both the copyright
                     12:  * notice and this permission notice appear in all copies of the
                     13:  * software, derivative works or modified versions, and any portions
                     14:  * thereof, and that both notices appear in supporting documentation.
                     15:  *
                     16:  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
                     17:  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
                     18:  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
                     19:  *
                     20:  * Carnegie Mellon requests users of this software to return to
                     21:  *
                     22:  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
                     23:  *  School of Computer Science
                     24:  *  Carnegie Mellon University
                     25:  *  Pittsburgh PA 15213-3890
                     26:  *
                     27:  * any improvements or extensions that they make and grant Carnegie the
                     28:  * rights to redistribute these changes.
                     29:  */
                     30:
                     31: /*
                     32:  * rf_mcpair.h
                     33:  * See comments in rf_mcpair.c
                     34:  */
                     35:
                     36: #ifndef        _RF__RF_MCPAIR_H_
                     37: #define        _RF__RF_MCPAIR_H_
                     38:
                     39: #include "rf_types.h"
                     40: #include "rf_threadstuff.h"
                     41:
                     42: struct RF_MCPair_s {
                     43:        RF_DECLARE_MUTEX(mutex);
                     44:        RF_DECLARE_COND (cond);
                     45:        int              flag;
                     46:        RF_MCPair_t     *next;
                     47: };
                     48: #define        RF_WAIT_MCPAIR(_mcp)    tsleep(&((_mcp)->flag), PRIBIO, "mcpair", 0)
                     49:
                     50: int  rf_ConfigureMCPair(RF_ShutdownList_t **);
                     51: RF_MCPair_t *rf_AllocMCPair(void);
                     52: void rf_FreeMCPair(RF_MCPair_t *);
                     53: void rf_MCPairWakeupFunc(RF_MCPair_t *);
                     54:
                     55: #endif /* !_RF__RF_MCPAIR_H_ */

CVSweb