Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/raidframe Cleanup function prototypes.
details: https://anonhg.NetBSD.org/src/rev/484e7ee4ebd4
branches: trunk
changeset: 559573:484e7ee4ebd4
user: oster <oster%NetBSD.org@localhost>
date: Sat Mar 20 16:48:05 2004 +0000
description:
Cleanup function prototypes.
diffstat:
sys/dev/raidframe/rf_dagutils.h | 92 ++++++++++++++--------------------------
1 files changed, 32 insertions(+), 60 deletions(-)
diffs (121 lines):
diff -r 09a14a977d4a -r 484e7ee4ebd4 sys/dev/raidframe/rf_dagutils.h
--- a/sys/dev/raidframe/rf_dagutils.h Sat Mar 20 15:56:21 2004 +0000
+++ b/sys/dev/raidframe/rf_dagutils.h Sat Mar 20 16:48:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_dagutils.h,v 1.14 2004/03/20 15:56:21 oster Exp $ */
+/* $NetBSD: rf_dagutils.h,v 1.15 2004/03/20 16:48:05 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@@ -56,21 +56,17 @@
extern const RF_RedFuncs_t rf_xorFuncs;
extern const RF_RedFuncs_t rf_xorRecoveryFuncs;
-void
-rf_InitNode(RF_DagNode_t * node, RF_NodeStatus_t initstatus,
- int commit,
- int (*doFunc) (RF_DagNode_t * node),
- int (*undoFunc) (RF_DagNode_t * node),
- int (*wakeFunc) (RF_DagNode_t * node, int status),
- int nSucc, int nAnte, int nParam, int nResult,
- RF_DagHeader_t * hdr, char *name, RF_AllocListElem_t * alist);
+void rf_InitNode(RF_DagNode_t *, RF_NodeStatus_t, int,
+ int (*doFunc) (RF_DagNode_t *),
+ int (*undoFunc) (RF_DagNode_t *),
+ int (*wakeFunc) (RF_DagNode_t *, int),
+ int, int, int, int, RF_DagHeader_t *,
+ char *, RF_AllocListElem_t *);
-void rf_FreeDAG(RF_DagHeader_t * dag_h);
-
-int rf_ConfigureDAGs(RF_ShutdownList_t ** listp);
+void rf_FreeDAG(RF_DagHeader_t *);
+int rf_ConfigureDAGs(RF_ShutdownList_t **);
RF_DagHeader_t *rf_AllocDAGHeader(void);
-
void rf_FreeDAGHeader(RF_DagHeader_t * dh);
RF_DagNode_t *rf_AllocDAGNode(void);
@@ -89,58 +85,34 @@
void *rf_AllocIOBuffer(RF_Raid_t *, int);
void rf_FreeIOBuffer(RF_Raid_t *, void *);
-char *rf_NodeStatusString(RF_DagNode_t * node);
-
-void rf_PrintNodeInfoString(RF_DagNode_t * node);
-
-int rf_AssignNodeNums(RF_DagHeader_t * dag_h);
-
-int rf_RecurAssignNodeNums(RF_DagNode_t * node, int num, int unvisited);
-
-void rf_ResetDAGHeaderPointers(RF_DagHeader_t * dag_h,
- RF_DagHeader_t * newptr);
-
-void rf_RecurResetDAGHeaderPointers(RF_DagNode_t * node,
- RF_DagHeader_t * newptr);
-
-void rf_PrintDAGList(RF_DagHeader_t * dag_h);
-
-int rf_ValidateDAG(RF_DagHeader_t * dag_h);
-
-void rf_redirect_asm(RF_Raid_t * raidPtr, RF_AccessStripeMap_t * asmap);
-
-void rf_MapUnaccessedPortionOfStripe(RF_Raid_t * raidPtr,
- RF_RaidLayout_t * layoutPtr,
- RF_AccessStripeMap_t * asmap,
- RF_DagHeader_t * dag_h,
- RF_AccessStripeMapHeader_t ** new_asm_h,
- int *nRodNodes, char **sosBuffer,
- char **eosBuffer,
- RF_AllocListElem_t * allocList);
-
-int rf_PDAOverlap(RF_RaidLayout_t * layoutPtr, RF_PhysDiskAddr_t * src,
- RF_PhysDiskAddr_t * dest);
-
-void rf_GenerateFailedAccessASMs(RF_Raid_t * raidPtr,
- RF_AccessStripeMap_t * asmap,
- RF_PhysDiskAddr_t * failedPDA,
- RF_DagHeader_t * dag_h,
- RF_AccessStripeMapHeader_t ** new_asm_h,
- int *nXorBufs, char **rpBufPtr,
- char *overlappingPDAs,
- RF_AllocListElem_t * allocList);
+char *rf_NodeStatusString(RF_DagNode_t *);
+void rf_PrintNodeInfoString(RF_DagNode_t *);
+int rf_AssignNodeNums(RF_DagHeader_t *);
+int rf_RecurAssignNodeNums(RF_DagNode_t *, int, int);
+void rf_ResetDAGHeaderPointers(RF_DagHeader_t *, RF_DagHeader_t *);
+void rf_RecurResetDAGHeaderPointers(RF_DagNode_t *, RF_DagHeader_t *);
+void rf_PrintDAGList(RF_DagHeader_t *);
+int rf_ValidateDAG(RF_DagHeader_t *);
+void rf_redirect_asm(RF_Raid_t *, RF_AccessStripeMap_t *);
+void rf_MapUnaccessedPortionOfStripe(RF_Raid_t *, RF_RaidLayout_t *,
+ RF_AccessStripeMap_t *, RF_DagHeader_t *,
+ RF_AccessStripeMapHeader_t **, int *,
+ char **, char **, RF_AllocListElem_t *);
+int rf_PDAOverlap(RF_RaidLayout_t *, RF_PhysDiskAddr_t *, RF_PhysDiskAddr_t *);
+void rf_GenerateFailedAccessASMs(RF_Raid_t *, RF_AccessStripeMap_t *,
+ RF_PhysDiskAddr_t *, RF_DagHeader_t *,
+ RF_AccessStripeMapHeader_t **,
+ int *, char **, char *, RF_AllocListElem_t *);
/* flags used by RangeRestrictPDA */
#define RF_RESTRICT_NOBUFFER 0
#define RF_RESTRICT_DOBUFFER 1
-void rf_RangeRestrictPDA(RF_Raid_t * raidPtr, RF_PhysDiskAddr_t * src,
- RF_PhysDiskAddr_t * dest, int dobuffer,
- int doraidaddr);
+void rf_RangeRestrictPDA(RF_Raid_t *, RF_PhysDiskAddr_t *,
+ RF_PhysDiskAddr_t *, int, int);
-int rf_compute_workload_shift(RF_Raid_t * raidPtr,
- RF_PhysDiskAddr_t * pda);
-void rf_SelectMirrorDiskIdle(RF_DagNode_t * node);
-void rf_SelectMirrorDiskPartition(RF_DagNode_t * node);
+int rf_compute_workload_shift(RF_Raid_t *, RF_PhysDiskAddr_t *);
+void rf_SelectMirrorDiskIdle(RF_DagNode_t *);
+void rf_SelectMirrorDiskPartition(RF_DagNode_t *);
#endif /* !_RF__RF_DAGUTILS_H_ */
Home |
Main Index |
Thread Index |
Old Index