rf_dagffwr.h revision 1.1 1 /* $NetBSD: rf_dagffwr.h,v 1.1 1998/11/13 04:20:27 oster Exp $ */
2 /*
3 * Copyright (c) 1995 Carnegie-Mellon University.
4 * All rights reserved.
5 *
6 * Author: Mark Holland, Daniel Stodolsky, William V. Courtright II
7 *
8 * Permission to use, copy, modify and distribute this software and
9 * its documentation is hereby granted, provided that both the copyright
10 * notice and this permission notice appear in all copies of the
11 * software, derivative works or modified versions, and any portions
12 * thereof, and that both notices appear in supporting documentation.
13 *
14 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
16 * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17 *
18 * Carnegie Mellon requests users of this software to return to
19 *
20 * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
21 * School of Computer Science
22 * Carnegie Mellon University
23 * Pittsburgh PA 15213-3890
24 *
25 * any improvements or extensions that they make and grant Carnegie the
26 * rights to redistribute these changes.
27 */
28
29 /*
30 * :
31 * Log: rf_dagffwr.h,v
32 * Revision 1.6 1996/07/31 15:35:29 jimz
33 * evenodd changes; bugfixes for double-degraded archs, generalize
34 * some formerly PQ-only functions
35 *
36 * Revision 1.5 1996/07/22 19:52:16 jimz
37 * switched node params to RF_DagParam_t, a union of
38 * a 64-bit int and a void *, for better portability
39 * attempted hpux port, but failed partway through for
40 * lack of a single C compiler capable of compiling all
41 * source files
42 *
43 * Revision 1.4 1996/06/10 22:25:28 wvcii
44 * added write dags which do not have a commit node and are
45 * used in forward and backward error recovery experiments.
46 *
47 * Revision 1.3 1996/05/24 22:17:04 jimz
48 * continue code + namespace cleanup
49 * typed a bunch of flags
50 *
51 * Revision 1.2 1996/05/23 21:46:35 jimz
52 * checkpoint in code cleanup (release prep)
53 * lots of types, function names have been fixed
54 *
55 * Revision 1.1 1996/05/03 19:20:18 wvcii
56 * Initial revision
57 *
58 */
59
60 #ifndef _RF__RF_DAGFFWR_H_
61 #define _RF__RF_DAGFFWR_H_
62
63 #include "rf_types.h"
64
65 /* fault-free write DAG creation routines */
66 void rf_CreateNonRedundantWriteDAG(RF_Raid_t *raidPtr,
67 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
68 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
69 RF_IoType_t type);
70 void rf_CreateRAID0WriteDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
71 RF_DagHeader_t *dag_h, void *bp, RF_RaidAccessFlags_t flags,
72 RF_AllocListElem_t *allocList, RF_IoType_t type);
73 void rf_CreateSmallWriteDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
74 RF_DagHeader_t *dag_h, void *bp, RF_RaidAccessFlags_t flags,
75 RF_AllocListElem_t *allocList);
76 void rf_CreateLargeWriteDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
77 RF_DagHeader_t *dag_h, void *bp, RF_RaidAccessFlags_t flags,
78 RF_AllocListElem_t *allocList);
79 void rf_CommonCreateLargeWriteDAG(RF_Raid_t *raidPtr,
80 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
81 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList, int nfaults,
82 int (*redFunc)(RF_DagNode_t *), int allowBufferRecycle);
83 void rf_CommonCreateLargeWriteDAGFwd(RF_Raid_t *raidPtr,
84 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
85 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList, int nfaults,
86 int (*redFunc)(RF_DagNode_t *), int allowBufferRecycle);
87 void rf_CommonCreateSmallWriteDAG(RF_Raid_t *raidPtr,
88 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
89 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
90 RF_RedFuncs_t *pfuncs, RF_RedFuncs_t *qfuncs);
91 void rf_CommonCreateSmallWriteDAGFwd(RF_Raid_t *raidPtr,
92 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
93 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList,
94 RF_RedFuncs_t *pfuncs, RF_RedFuncs_t *qfuncs);
95 void rf_CreateRaidOneWriteDAG(RF_Raid_t *raidPtr, RF_AccessStripeMap_t *asmap,
96 RF_DagHeader_t *dag_h, void *bp, RF_RaidAccessFlags_t flags,
97 RF_AllocListElem_t *allocList);
98 void rf_CreateRaidOneWriteDAGFwd(RF_Raid_t *raidPtr,
99 RF_AccessStripeMap_t *asmap, RF_DagHeader_t *dag_h, void *bp,
100 RF_RaidAccessFlags_t flags, RF_AllocListElem_t *allocList);
101
102 #endif /* !_RF__RF_DAGFFWR_H_ */
103