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/contrib/openzfs/include/sys/vdev_raidz.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 /*
    2  * CDDL HEADER START
    3  *
    4  * The contents of this file are subject to the terms of the
    5  * Common Development and Distribution License (the "License").
    6  * You may not use this file except in compliance with the License.
    7  *
    8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
    9  * or https://opensource.org/licenses/CDDL-1.0.
   10  * See the License for the specific language governing permissions
   11  * and limitations under the License.
   12  *
   13  * When distributing Covered Code, include this CDDL HEADER in each
   14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
   15  * If applicable, add the following below this CDDL HEADER, with the
   16  * fields enclosed by brackets "[]" replaced with your own identifying
   17  * information: Portions Copyright [yyyy] [name of copyright owner]
   18  *
   19  * CDDL HEADER END
   20  */
   21 /*
   22  * Copyright (C) 2016 Gvozden Neskovic <neskovic@compeng.uni-frankfurt.de>.
   23  */
   24 
   25 #ifndef _SYS_VDEV_RAIDZ_H
   26 #define _SYS_VDEV_RAIDZ_H
   27 
   28 #include <sys/types.h>
   29 
   30 #ifdef  __cplusplus
   31 extern "C" {
   32 #endif
   33 
   34 struct zio;
   35 struct raidz_col;
   36 struct raidz_row;
   37 struct raidz_map;
   38 #if !defined(_KERNEL)
   39 struct kernel_param {};
   40 #endif
   41 
   42 /*
   43  * vdev_raidz interface
   44  */
   45 struct raidz_map *vdev_raidz_map_alloc(struct zio *, uint64_t, uint64_t,
   46     uint64_t);
   47 void vdev_raidz_map_free(struct raidz_map *);
   48 void vdev_raidz_generate_parity_row(struct raidz_map *, struct raidz_row *);
   49 void vdev_raidz_generate_parity(struct raidz_map *);
   50 void vdev_raidz_reconstruct(struct raidz_map *, const int *, int);
   51 void vdev_raidz_child_done(zio_t *);
   52 void vdev_raidz_io_done(zio_t *);
   53 void vdev_raidz_checksum_error(zio_t *, struct raidz_col *, abd_t *);
   54 
   55 extern const zio_vsd_ops_t vdev_raidz_vsd_ops;
   56 
   57 /*
   58  * vdev_raidz_math interface
   59  */
   60 void vdev_raidz_math_init(void);
   61 void vdev_raidz_math_fini(void);
   62 const struct raidz_impl_ops *vdev_raidz_math_get_ops(void);
   63 int vdev_raidz_math_generate(struct raidz_map *, struct raidz_row *);
   64 int vdev_raidz_math_reconstruct(struct raidz_map *, struct raidz_row *,
   65     const int *, const int *, const int);
   66 int vdev_raidz_impl_set(const char *);
   67 
   68 typedef struct vdev_raidz {
   69         int vd_logical_width;
   70         int vd_nparity;
   71 } vdev_raidz_t;
   72 
   73 #ifdef  __cplusplus
   74 }
   75 #endif
   76 
   77 #endif /* _SYS_VDEV_RAIDZ_H */

Cache object: 369c9368b90c1a41de2d32b40a4b9d95


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