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_dagfuncs.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_dagfuncs.h,v 1.7 2004/01/10 17:04:44 oster Exp $    */
    2 /*
    3  * Copyright (c) 1995 Carnegie-Mellon University.
    4  * All rights reserved.
    5  *
    6  * Author: Mark Holland, William V. Courtright II, Jim Zelenka
    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 /*****************************************************************************************
   30  *
   31  * dagfuncs.h -- header file for DAG node execution routines
   32  *
   33  ****************************************************************************************/
   34 
   35 #ifndef _RF__RF_DAGFUNCS_H_
   36 #define _RF__RF_DAGFUNCS_H_
   37 
   38 int     rf_ConfigureDAGFuncs(RF_ShutdownList_t ** listp);
   39 int     rf_TerminateFunc(RF_DagNode_t * node);
   40 int     rf_TerminateUndoFunc(RF_DagNode_t * node);
   41 int     rf_DiskReadMirrorIdleFunc(RF_DagNode_t * node);
   42 int     rf_DiskReadMirrorPartitionFunc(RF_DagNode_t * node);
   43 int     rf_DiskReadMirrorUndoFunc(RF_DagNode_t * node);
   44 int     rf_ParityLogUpdateFunc(RF_DagNode_t * node);
   45 int     rf_ParityLogOverwriteFunc(RF_DagNode_t * node);
   46 int     rf_ParityLogUpdateUndoFunc(RF_DagNode_t * node);
   47 int     rf_ParityLogOverwriteUndoFunc(RF_DagNode_t * node);
   48 int     rf_NullNodeFunc(RF_DagNode_t * node);
   49 int     rf_NullNodeUndoFunc(RF_DagNode_t * node);
   50 int     rf_DiskReadFuncForThreads(RF_DagNode_t * node);
   51 int     rf_DiskWriteFuncForThreads(RF_DagNode_t * node);
   52 int     rf_DiskUndoFunc(RF_DagNode_t * node);
   53 int     rf_DiskUnlockFuncForThreads(RF_DagNode_t * node);
   54 int     rf_GenericWakeupFunc(RF_DagNode_t * node, int status);
   55 int     rf_RegularXorFunc(RF_DagNode_t * node);
   56 int     rf_SimpleXorFunc(RF_DagNode_t * node);
   57 int     rf_RecoveryXorFunc(RF_DagNode_t * node);
   58 int 
   59 rf_XorIntoBuffer(RF_Raid_t * raidPtr, RF_PhysDiskAddr_t * pda, char *srcbuf,
   60                  char *targbuf);
   61 int     rf_bxor(char *src, char *dest, int len);
   62 int 
   63 rf_longword_bxor(unsigned long *src, unsigned long *dest, int len);
   64 int 
   65 rf_longword_bxor3(unsigned long *dest, unsigned long *a, unsigned long *b, 
   66                   unsigned long *c, int len, void *bp);
   67 int 
   68 rf_bxor3(unsigned char *dst, unsigned char *a, unsigned char *b,
   69     unsigned char *c, unsigned long len, void *bp);
   70 
   71 /* function ptrs defined in ConfigureDAGFuncs() */
   72 extern int (*rf_DiskReadFunc) (RF_DagNode_t *);
   73 extern int (*rf_DiskWriteFunc) (RF_DagNode_t *);
   74 extern int (*rf_DiskReadUndoFunc) (RF_DagNode_t *);
   75 extern int (*rf_DiskWriteUndoFunc) (RF_DagNode_t *);
   76 extern int (*rf_DiskUnlockFunc) (RF_DagNode_t *);
   77 extern int (*rf_DiskUnlockUndoFunc) (RF_DagNode_t *);
   78 extern int (*rf_SimpleXorUndoFunc) (RF_DagNode_t *);
   79 extern int (*rf_RegularXorUndoFunc) (RF_DagNode_t *);
   80 extern int (*rf_RecoveryXorUndoFunc) (RF_DagNode_t *);
   81 
   82 /* macros for manipulating the param[3] in a read or write node */
   83 #define RF_CREATE_PARAM3(pri, wru) (((RF_uint64)(((wru&0xFFFFFF)<<8)|((pri)&0xF)) ))
   84 #define RF_EXTRACT_PRIORITY(_x_)     ((((unsigned) ((unsigned long)(_x_))) >> 0) & 0x0F)
   85 #define RF_EXTRACT_RU(_x_)           ((((unsigned) ((unsigned long)(_x_))) >> 8) & 0xFFFFFF)
   86 
   87 #endif                          /* !_RF__RF_DAGFUNCS_H_ */

Cache object: cbe618b40fcef231ee447af0ab61cd78


[ 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.