The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/raidframe/rf_map.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: rf_map.h,v 1.11 2004/03/20 04:22:05 oster Exp $        */
    2 /*
    3  * Copyright (c) 1995 Carnegie-Mellon University.
    4  * All rights reserved.
    5  *
    6  * Author: Mark Holland
    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@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 /* rf_map.h */
   30 
   31 #ifndef _RF__RF_MAP_H_
   32 #define _RF__RF_MAP_H_
   33 
   34 #include <dev/raidframe/raidframevar.h>
   35 
   36 #include "rf_alloclist.h"
   37 #include "rf_raid.h"
   38 
   39 /* mapping structure allocation and free routines */
   40 RF_AccessStripeMapHeader_t *rf_MapAccess(RF_Raid_t *, RF_RaidAddr_t,
   41                                          RF_SectorCount_t, caddr_t, int);
   42 void rf_MarkFailuresInASMList(RF_Raid_t *, RF_AccessStripeMapHeader_t *);
   43 int rf_ConfigureMapModule(RF_ShutdownList_t **);
   44 RF_AccessStripeMapHeader_t *rf_AllocAccessStripeMapHeader(void);
   45 void rf_FreeAccessStripeMapHeader(RF_AccessStripeMapHeader_t *);
   46 RF_PhysDiskAddr_t *rf_AllocPhysDiskAddr(void);
   47 RF_PhysDiskAddr_t *rf_AllocPDAList(int);
   48 void rf_FreePhysDiskAddr(RF_PhysDiskAddr_t *);
   49 RF_AccessStripeMap_t *rf_AllocASMList(int);
   50 void rf_FreeAccessStripeMap(RF_AccessStripeMapHeader_t *);
   51 int rf_CheckStripeForFailures(RF_Raid_t *, RF_AccessStripeMap_t *);
   52 int rf_NumFailedDataUnitsInStripe(RF_Raid_t *, RF_AccessStripeMap_t *);
   53 void rf_PrintAccessStripeMap(RF_AccessStripeMapHeader_t *);
   54 void rf_PrintFullAccessStripeMap(RF_AccessStripeMapHeader_t *, int);
   55 void rf_PrintRaidAddressInfo(RF_Raid_t *, RF_RaidAddr_t, RF_SectorCount_t);
   56 void rf_ASMParityAdjust(RF_PhysDiskAddr_t *, RF_StripeNum_t, RF_SectorNum_t,
   57                         RF_RaidLayout_t *, RF_AccessStripeMap_t *);
   58 void rf_ASMCheckStatus(RF_Raid_t *, RF_PhysDiskAddr_t *, RF_AccessStripeMap_t *,
   59                        RF_RaidDisk_t *, int);
   60 
   61 RF_VoidFunctionPointerListElem_t *rf_AllocVFPListElem(void);
   62 void rf_FreeVFPListElem(RF_VoidFunctionPointerListElem_t *);
   63 RF_VoidPointerListElem_t *rf_AllocVPListElem(void);
   64 void rf_FreeVPListElem(RF_VoidPointerListElem_t *);
   65 RF_ASMHeaderListElem_t *rf_AllocASMHeaderListElem(void);
   66 void rf_FreeASMHeaderListElem(RF_ASMHeaderListElem_t *);
   67 RF_FailedStripe_t *rf_AllocFailedStripeStruct(void);
   68 void rf_FreeFailedStripeStruct(RF_FailedStripe_t *);
   69 
   70 #endif                          /* !_RF__RF_MAP_H_ */

Cache object: eb06f20e08fa66b5932e272a6cae43ba


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.