\hypertarget{tr__raid5_8c_source}{}\doxysection{tr\+\_\+raid5.\+c}
\label{tr__raid5_8c_source}\index{geom/raid/tr\_raid5.c@{geom/raid/tr\_raid5.c}}
\mbox{\hyperlink{tr__raid5_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/2-\/Clause-\/FreeBSD}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2012 Alexander Motin <mav@FreeBSD.org>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00015}00015 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00016}00016 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00017}00017 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00018}00018 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00019}00019 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00020}00020 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00021}00021 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00022}00022 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00023}00023 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00024}00024 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00025}00025 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00026}00026 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00027}00027 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00028}00028 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00029}00029 \textcolor{preprocessor}{\#include <sys/cdefs.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00030}\mbox{\hyperlink{tr__raid5_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{00030}} \mbox{\hyperlink{tr__raid5_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\_\_FBSDID}}(\textcolor{stringliteral}{"{}\$FreeBSD\$"{}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00031}00031 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00032}00032 \textcolor{preprocessor}{\#include <sys/param.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00033}00033 \textcolor{preprocessor}{\#include <sys/bio.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00034}00034 \textcolor{preprocessor}{\#include <sys/endian.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00035}00035 \textcolor{preprocessor}{\#include <sys/kernel.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00036}00036 \textcolor{preprocessor}{\#include <sys/kobj.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/limits.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00038}00038 \textcolor{preprocessor}{\#include <sys/lock.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00039}00039 \textcolor{preprocessor}{\#include <sys/malloc.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00040}00040 \textcolor{preprocessor}{\#include <sys/mutex.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00041}00041 \textcolor{preprocessor}{\#include <sys/sysctl.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00042}00042 \textcolor{preprocessor}{\#include <sys/systm.h>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00043}00043 \textcolor{preprocessor}{\#include <\mbox{\hyperlink{geom_8h}{geom/geom.h}}>}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00044}00044 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{g__raid_8h}{geom/raid/g\_raid.h}}"{}}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00045}00045 \textcolor{preprocessor}{\#include "{}g\_raid\_tr\_if.h"{}}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00047}\mbox{\hyperlink{tr__raid5_8c_af1aa04d6b324d930ae6c20ba1237a512}{00047}} \textcolor{keyword}{static} \mbox{\hyperlink{tr__raid5_8c_af1aa04d6b324d930ae6c20ba1237a512}{MALLOC\_DEFINE}}(M\_TR\_RAID5, \textcolor{stringliteral}{"{}tr\_raid5\_data"{}}, \textcolor{stringliteral}{"{}GEOM\_RAID RAID5 data"{}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00048}00048 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00049}\mbox{\hyperlink{tr__raid5_8c_aaab62ceafab917e41071f88568e4f9b8}{00049}} \textcolor{preprocessor}{\#define TR\_RAID5\_NONE 0}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00050}\mbox{\hyperlink{tr__raid5_8c_ac5a50aa5bcd77114b9d4eed42a3a8546}{00050}} \textcolor{preprocessor}{\#define TR\_RAID5\_REBUILD 1}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00051}\mbox{\hyperlink{tr__raid5_8c_ac3e4c341c34204325983710947bfcbf3}{00051}} \textcolor{preprocessor}{\#define TR\_RAID5\_RESYNC 2}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00052}00052 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00053}\mbox{\hyperlink{tr__raid5_8c_ae09660bff90fae4af9f4dd3161c54cad}{00053}} \textcolor{preprocessor}{\#define TR\_RAID5\_F\_DOING\_SOME   0x1}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00054}\mbox{\hyperlink{tr__raid5_8c_a9d875c847fb696f5db7698eca8c3c902}{00054}} \textcolor{preprocessor}{\#define TR\_RAID5\_F\_LOCKED       0x2}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00055}\mbox{\hyperlink{tr__raid5_8c_a6142269b43efb5276fd21bdb8a84781f}{00055}} \textcolor{preprocessor}{\#define TR\_RAID5\_F\_ABORT        0x4}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00057}\mbox{\hyperlink{structg__raid__tr__raid5__object}{00057}} \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00058}\mbox{\hyperlink{structg__raid__tr__raid5__object_aceb316643d0648b9d25822b999d9fd41}{00058}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}}  \mbox{\hyperlink{structg__raid__tr__raid5__object_aceb316643d0648b9d25822b999d9fd41}{trso\_base}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00059}\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{00059}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00060}\mbox{\hyperlink{structg__raid__tr__raid5__object_a642d89d3d6ec1140d6d105551eb262eb}{00060}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a642d89d3d6ec1140d6d105551eb262eb}{trso\_stopping}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00061}\mbox{\hyperlink{structg__raid__tr__raid5__object_adc74f274fc0e2ab2e237935b2786e11a}{00061}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_adc74f274fc0e2ab2e237935b2786e11a}{trso\_type}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00062}\mbox{\hyperlink{structg__raid__tr__raid5__object_a686c12104a793efd601c57f9325aa895}{00062}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a686c12104a793efd601c57f9325aa895}{trso\_recover\_slabs}}; \textcolor{comment}{/* slabs before rest */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00063}\mbox{\hyperlink{structg__raid__tr__raid5__object_a578ff9de125e2775c3dc7b7548e9f44e}{00063}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a578ff9de125e2775c3dc7b7548e9f44e}{trso\_fair\_io}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00064}\mbox{\hyperlink{structg__raid__tr__raid5__object_a1977cebe86d4d5b94bc20425176c1ddf}{00064}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a1977cebe86d4d5b94bc20425176c1ddf}{trso\_meta\_update}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00065}\mbox{\hyperlink{structg__raid__tr__raid5__object_a9ce3ca737f6a7ce7375b86af6ee879ea}{00065}}         \textcolor{keywordtype}{int}                      \mbox{\hyperlink{structg__raid__tr__raid5__object_a9ce3ca737f6a7ce7375b86af6ee879ea}{trso\_flags}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00066}\mbox{\hyperlink{structg__raid__tr__raid5__object_a705dc099ff2951ef9edc4292a8183a61}{00066}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}}     *\mbox{\hyperlink{structg__raid__tr__raid5__object_a705dc099ff2951ef9edc4292a8183a61}{trso\_failed\_sd}}; \textcolor{comment}{/* like per volume */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00067}\mbox{\hyperlink{structg__raid__tr__raid5__object_ac502bf0a7dfe62e22101b94a434dd85e}{00067}}         \textcolor{keywordtype}{void}                    *\mbox{\hyperlink{structg__raid__tr__raid5__object_ac502bf0a7dfe62e22101b94a434dd85e}{trso\_buffer}};         \textcolor{comment}{/* Buffer space */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00068}\mbox{\hyperlink{structg__raid__tr__raid5__object_af609d1307f97592117126d9931990928}{00068}}         \textcolor{keyword}{struct }bio               \mbox{\hyperlink{structg__raid__tr__raid5__object_af609d1307f97592117126d9931990928}{trso\_bio}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00069}00069 \};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00070}00070 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00071}\mbox{\hyperlink{tr__raid5_8c_adc7b5d24d265b4f758aba6724b4cba99}{00071}} \textcolor{keyword}{static} g\_raid\_tr\_taste\_t \mbox{\hyperlink{tr__raid5_8c_adc7b5d24d265b4f758aba6724b4cba99}{g\_raid\_tr\_taste\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00072}\mbox{\hyperlink{tr__raid5_8c_ae01f5a3626089483b477de9e8bcdfa6e}{00072}} \textcolor{keyword}{static} g\_raid\_tr\_event\_t \mbox{\hyperlink{tr__raid5_8c_ae01f5a3626089483b477de9e8bcdfa6e}{g\_raid\_tr\_event\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00073}\mbox{\hyperlink{tr__raid5_8c_ad57246b0f8eca2206254af3d173d3f8d}{00073}} \textcolor{keyword}{static} g\_raid\_tr\_start\_t \mbox{\hyperlink{tr__raid5_8c_ad57246b0f8eca2206254af3d173d3f8d}{g\_raid\_tr\_start\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00074}\mbox{\hyperlink{tr__raid5_8c_a14eff69c4065bf361995a7411dd25951}{00074}} \textcolor{keyword}{static} g\_raid\_tr\_stop\_t \mbox{\hyperlink{tr__raid5_8c_a14eff69c4065bf361995a7411dd25951}{g\_raid\_tr\_stop\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00075}\mbox{\hyperlink{tr__raid5_8c_a46c7b306a519f68b1187d1f95c4d2caf}{00075}} \textcolor{keyword}{static} g\_raid\_tr\_iostart\_t \mbox{\hyperlink{tr__raid5_8c_a46c7b306a519f68b1187d1f95c4d2caf}{g\_raid\_tr\_iostart\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00076}\mbox{\hyperlink{tr__raid5_8c_a02a69136bbe11631708eb9f2d30a26d3}{00076}} \textcolor{keyword}{static} g\_raid\_tr\_iodone\_t \mbox{\hyperlink{tr__raid5_8c_a02a69136bbe11631708eb9f2d30a26d3}{g\_raid\_tr\_iodone\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00077}\mbox{\hyperlink{tr__raid5_8c_a9bafe0d87ee6ccda607d63037c3572bf}{00077}} \textcolor{keyword}{static} g\_raid\_tr\_kerneldump\_t \mbox{\hyperlink{tr__raid5_8c_a9bafe0d87ee6ccda607d63037c3572bf}{g\_raid\_tr\_kerneldump\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00078}\mbox{\hyperlink{tr__raid5_8c_abd0c52e71000d1e4fd7b341240de9705}{00078}} \textcolor{keyword}{static} g\_raid\_tr\_locked\_t \mbox{\hyperlink{tr__raid5_8c_abd0c52e71000d1e4fd7b341240de9705}{g\_raid\_tr\_locked\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00079}\mbox{\hyperlink{tr__raid5_8c_a74ddc1abc50c0342ab2518d307d5781c}{00079}} \textcolor{keyword}{static} g\_raid\_tr\_free\_t \mbox{\hyperlink{tr__raid5_8c_a74ddc1abc50c0342ab2518d307d5781c}{g\_raid\_tr\_free\_raid5}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00080}00080 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00081}\mbox{\hyperlink{tr__raid5_8c_a2d43a2496ec6a284a985489ecd1c78c0}{00081}} \textcolor{keyword}{static} kobj\_method\_t \mbox{\hyperlink{tr__raid5_8c_a2d43a2496ec6a284a985489ecd1c78c0}{g\_raid\_tr\_raid5\_methods}}[] = \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00082}00082         KOBJMETHOD(g\_raid\_tr\_taste,     \mbox{\hyperlink{tr__raid5_8c_adc7b5d24d265b4f758aba6724b4cba99}{g\_raid\_tr\_taste\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00083}00083         KOBJMETHOD(g\_raid\_tr\_event,     \mbox{\hyperlink{tr__raid5_8c_ae01f5a3626089483b477de9e8bcdfa6e}{g\_raid\_tr\_event\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00084}00084         KOBJMETHOD(g\_raid\_tr\_start,     \mbox{\hyperlink{tr__raid5_8c_ad57246b0f8eca2206254af3d173d3f8d}{g\_raid\_tr\_start\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00085}00085         KOBJMETHOD(g\_raid\_tr\_stop,      \mbox{\hyperlink{tr__raid5_8c_a14eff69c4065bf361995a7411dd25951}{g\_raid\_tr\_stop\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00086}00086         KOBJMETHOD(g\_raid\_tr\_iostart,   \mbox{\hyperlink{tr__raid5_8c_a46c7b306a519f68b1187d1f95c4d2caf}{g\_raid\_tr\_iostart\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00087}00087         KOBJMETHOD(g\_raid\_tr\_iodone,    \mbox{\hyperlink{tr__raid5_8c_a02a69136bbe11631708eb9f2d30a26d3}{g\_raid\_tr\_iodone\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00088}00088         KOBJMETHOD(g\_raid\_tr\_kerneldump, \mbox{\hyperlink{tr__raid5_8c_a9bafe0d87ee6ccda607d63037c3572bf}{g\_raid\_tr\_kerneldump\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00089}00089         KOBJMETHOD(g\_raid\_tr\_locked,    \mbox{\hyperlink{tr__raid5_8c_abd0c52e71000d1e4fd7b341240de9705}{g\_raid\_tr\_locked\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00090}00090         KOBJMETHOD(g\_raid\_tr\_free,      \mbox{\hyperlink{tr__raid5_8c_a74ddc1abc50c0342ab2518d307d5781c}{g\_raid\_tr\_free\_raid5}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00091}00091         \{ 0, 0 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00092}00092 \};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00093}00093 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00094}\mbox{\hyperlink{tr__raid5_8c_aeb07c2a213b2a33bff7cdf1444fc92bc}{00094}} \textcolor{keyword}{static} \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__class}{g\_raid\_tr\_class}} \mbox{\hyperlink{tr__raid5_8c_aeb07c2a213b2a33bff7cdf1444fc92bc}{g\_raid\_tr\_raid5\_class}} = \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00095}00095         \textcolor{stringliteral}{"{}RAID5"{}},}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00096}00096         \mbox{\hyperlink{tr__raid5_8c_a2d43a2496ec6a284a985489ecd1c78c0}{g\_raid\_tr\_raid5\_methods}},}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00097}00097         \textcolor{keyword}{sizeof}(\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}}),}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00098}00098         .trc\_enable = 1,}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00099}00099         .trc\_priority = 100}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00100}00100 \};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00101}00101 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00102}00102 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00103}\mbox{\hyperlink{tr__raid5_8c_a37910ac60783ea87b9f9d059017af3be}{00103}} \mbox{\hyperlink{tr__raid5_8c_adc7b5d24d265b4f758aba6724b4cba99}{g\_raid\_tr\_taste\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr, \textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00104}00104 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00105}00105         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *trs;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00106}00106         u\_int qual;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00107}00107 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00108}00108         trs = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *)tr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00109}00109         qual = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ad17bb2da7eadd462f1f27551cb1da76f}{v\_raid\_level\_qualifier}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00110}00110         \textcolor{keywordflow}{if} (tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_ad9d81b49aca2a8e45711960756ee1b64}{G\_RAID\_VOLUME\_RL\_RAID4}} \&\&}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00111}00111             (qual == \mbox{\hyperlink{g__raid_8h_abbfb9b6f59a8aa3007b313e40dfba8d3}{G\_RAID\_VOLUME\_RLQ\_R4P0}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00112}00112              qual == \mbox{\hyperlink{g__raid_8h_a4041e329ebd03909d930bd59f6661a33}{G\_RAID\_VOLUME\_RLQ\_R4PN}})) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00113}00113                 \textcolor{comment}{/* RAID4 */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00114}00114         \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} ((tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_af6db015b03ea390243f2df897eb1189d}{G\_RAID\_VOLUME\_RL\_RAID5}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00115}00115              tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_a7cadd272579335fdcde7a39234215ddb}{G\_RAID\_VOLUME\_RL\_RAID5E}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00116}00116              tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_a0cb08361a3a264ef642c48a2fb149487}{G\_RAID\_VOLUME\_RL\_RAID5EE}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00117}00117              tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_a21661c0237bc156a1fd67148039b4fef}{G\_RAID\_VOLUME\_RL\_RAID5R}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00118}00118              tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_a1da2baddf7f8a628b3255449076ac9da}{G\_RAID\_VOLUME\_RL\_RAID6}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00119}00119              tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}} == \mbox{\hyperlink{g__raid_8h_a19e2cce955b69aa2bf41cd3e5a7abef5}{G\_RAID\_VOLUME\_RL\_RAIDMDF}}) \&\&}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00120}00120             (qual == \mbox{\hyperlink{g__raid_8h_a7094c9af86ad143a7c47973c7dc3f5f4}{G\_RAID\_VOLUME\_RLQ\_R5RA}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00121}00121              qual == \mbox{\hyperlink{g__raid_8h_a4663018c393ee0c4f0dab0b515c7ec9f}{G\_RAID\_VOLUME\_RLQ\_R5RS}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00122}00122              qual == \mbox{\hyperlink{g__raid_8h_a85a42d827015531803abc6df07b15e89}{G\_RAID\_VOLUME\_RLQ\_R5LA}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00123}00123              qual == \mbox{\hyperlink{g__raid_8h_a3605e753584db40187aadad30e663276}{G\_RAID\_VOLUME\_RLQ\_R5LS}})) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00124}00124                 \textcolor{comment}{/* RAID5/5E/5EE/5R/6/MDF */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00125}00125         \} \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00126}00126                 \textcolor{keywordflow}{return} (\mbox{\hyperlink{g__raid__tr__if_8m_a6d6fd1743789570a3aab513506428e85}{G\_RAID\_TR\_TASTE\_FAIL}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00127}00127         trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}} = 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00128}00128         \textcolor{keywordflow}{return} (\mbox{\hyperlink{g__raid__tr__if_8m_a39400a4126bc301e1c305060bfb7c250}{G\_RAID\_TR\_TASTE\_SUCCEED}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00129}00129 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00130}00130 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00131}00131 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00132}\mbox{\hyperlink{tr__raid5_8c_a510a1e68002060a03c5ee38235b544a8}{00132}} \mbox{\hyperlink{tr__raid5_8c_a510a1e68002060a03c5ee38235b544a8}{g\_raid\_tr\_update\_state\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}},}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00133}00133     \textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00134}00134 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00135}00135         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *trs;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00136}00136         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__softc}{g\_raid\_softc}} *sc;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00137}00137         u\_int s;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00138}00138         \textcolor{keywordtype}{int} na, ns, nu;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00139}00139 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00140}00140         sc = \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a5ddf3eff3aa40bdcbbfedb4d0458b332}{v\_softc}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00141}00141         trs = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *)\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a03bf7d238e7b0f9bf3fddadd21624039}{v\_tr}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00142}00142         if (trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a642d89d3d6ec1140d6d105551eb262eb}{trso\_stopping}} \&\&}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00143}00143             (trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a9ce3ca737f6a7ce7375b86af6ee879ea}{trso\_flags}} \& \mbox{\hyperlink{tr__raid5_8c_ae09660bff90fae4af9f4dd3161c54cad}{TR\_RAID5\_F\_DOING\_SOME}}) == 0)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00144}00144                 s = \mbox{\hyperlink{g__raid_8h_af54d408d323606c1f4fc52c10c6d89e1}{G\_RAID\_VOLUME\_S\_STOPPED}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00145}00145         \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00146}00146                 s = \mbox{\hyperlink{g__raid_8h_a0b0174c2570883e792d691bc22f9b8d4}{G\_RAID\_VOLUME\_S\_STARTING}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00147}00147         \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00148}00148                 na = \mbox{\hyperlink{g__raid_8c_ab8f738fdad1ea577cf8da5e1537f342c}{g\_raid\_nsubdisks}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, \mbox{\hyperlink{g__raid_8h_a498effa0ffa87b75f6c40381c6d4eb39}{G\_RAID\_SUBDISK\_S\_ACTIVE}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00149}00149                 ns = \mbox{\hyperlink{g__raid_8c_ab8f738fdad1ea577cf8da5e1537f342c}{g\_raid\_nsubdisks}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, \mbox{\hyperlink{g__raid_8h_a41bff35bee21218d2aba7a261eb2e83c}{G\_RAID\_SUBDISK\_S\_STALE}}) +}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00150}00150                      \mbox{\hyperlink{g__raid_8c_ab8f738fdad1ea577cf8da5e1537f342c}{g\_raid\_nsubdisks}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, \mbox{\hyperlink{g__raid_8h_a8c3d62bf4e551976a8941a23c8984e5d}{G\_RAID\_SUBDISK\_S\_RESYNC}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00151}00151                 nu = \mbox{\hyperlink{g__raid_8c_ab8f738fdad1ea577cf8da5e1537f342c}{g\_raid\_nsubdisks}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, \mbox{\hyperlink{g__raid_8h_a13d824d436f40abb3ab52f0d96a79b62}{G\_RAID\_SUBDISK\_S\_UNINITIALIZED}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00152}00152                 \textcolor{keywordflow}{if} (na == \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00153}00153                         s = \mbox{\hyperlink{g__raid_8h_a20afd300edb0e3cdbfb0386d2fbb36c3}{G\_RAID\_VOLUME\_S\_OPTIMAL}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00154}00154                 \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (na + ns == \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00155}00155                     na + ns + nu == \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} \textcolor{comment}{/* XXX: Temporary. */})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00156}00156                         s = \mbox{\hyperlink{g__raid_8h_a48e4e755439965447a7116e19309dd16}{G\_RAID\_VOLUME\_S\_SUBOPTIMAL}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00157}00157                 \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (na == \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} -\/ 1 ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00158}00158                     na + ns + nu == \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00159}00159                         s = \mbox{\hyperlink{g__raid_8h_a127fdd15d01e1ff21b274d56dabc3df5}{G\_RAID\_VOLUME\_S\_DEGRADED}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00160}00160                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00161}00161                         s = \mbox{\hyperlink{g__raid_8h_a271c4821091e2a44a8a3412dde015fea}{G\_RAID\_VOLUME\_S\_BROKEN}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00162}00162         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00163}00163         \textcolor{keywordflow}{if} (s != \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a5a90d68c226a2ae59ff670759f9cad28}{v\_state}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00164}00164                 \mbox{\hyperlink{g__raid_8c_ac49cc1991dccaeef0743e0bc4f64e0b5}{g\_raid\_event\_send}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, \mbox{\hyperlink{g__raid_8h_ac01262dc2989e4e4e0a5a1521809f5b3}{G\_RAID\_VOLUME\_S\_ALIVE}}(s) ?}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00165}00165                     \mbox{\hyperlink{g__raid_8h_ac4efcccfb7b2b1505ea4a458213ca844}{G\_RAID\_VOLUME\_E\_UP}} : \mbox{\hyperlink{g__raid_8h_a6d2e441dd210a0f2e4f9714400f2bab8}{G\_RAID\_VOLUME\_E\_DOWN}},}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00166}00166                     \mbox{\hyperlink{g__raid_8h_aa6f84af705b9b366dcb0e4aabd807667}{G\_RAID\_EVENT\_VOLUME}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00167}00167                 \mbox{\hyperlink{g__raid_8c_aefc2d93d4b02523eea4c62e99988ee67}{g\_raid\_change\_volume\_state}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, s);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00168}00168                 \textcolor{keywordflow}{if} (!trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}} \&\& !trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a642d89d3d6ec1140d6d105551eb262eb}{trso\_stopping}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00169}00169                         \mbox{\hyperlink{g__raid_8c_a9cf6273a366922dadcce1047df240cb5}{g\_raid\_write\_metadata}}(sc, \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, NULL, NULL);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00170}00170         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00171}00171         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00172}00172 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00173}00173 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00174}00174 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00175}\mbox{\hyperlink{tr__raid5_8c_ab3df1ebaff3c31db70533500d102c5a8}{00175}} \mbox{\hyperlink{tr__raid5_8c_ae01f5a3626089483b477de9e8bcdfa6e}{g\_raid\_tr\_event\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr,}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00176}00176     \textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}}, u\_int \mbox{\hyperlink{g__raid__md__if_8m_a683a43faabf5ffc974caacd425b678d0}{event}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00177}00177 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00178}00178 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00179}00179         \mbox{\hyperlink{tr__raid5_8c_a510a1e68002060a03c5ee38235b544a8}{g\_raid\_tr\_update\_state\_raid5}}(tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}, \mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00180}00180         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00181}00181 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00182}00182 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00183}00183 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00184}\mbox{\hyperlink{tr__raid5_8c_a6b067cdf259019d2e1bd8923a325adfb}{00184}} \mbox{\hyperlink{tr__raid5_8c_ad57246b0f8eca2206254af3d173d3f8d}{g\_raid\_tr\_start\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00185}00185 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00186}00186         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *trs;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00187}00187         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00188}00188 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00189}00189         trs = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *)tr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00190}00190         trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}} = 0;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00191}00191         \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}} = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00192}00192         \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_ae04c3407f7ec7791cf48314e0e7fa803}{v\_read\_only}} = 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00193}00193         \mbox{\hyperlink{tr__raid5_8c_a510a1e68002060a03c5ee38235b544a8}{g\_raid\_tr\_update\_state\_raid5}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, NULL);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00194}00194         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00195}00195 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00196}00196 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00197}00197 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00198}\mbox{\hyperlink{tr__raid5_8c_a0ca4004c07630a1173d305d0d5972222}{00198}} \mbox{\hyperlink{tr__raid5_8c_a14eff69c4065bf361995a7411dd25951}{g\_raid\_tr\_stop\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00199}00199 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00200}00200         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *trs;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00201}00201         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00202}00202 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00203}00203         trs = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *)tr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00204}00204         \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}} = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00205}00205         trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a6f3819458e2cc5df835ce2f447e5564c}{trso\_starting}} = 0;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00206}00206         trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_a642d89d3d6ec1140d6d105551eb262eb}{trso\_stopping}} = 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00207}00207         \mbox{\hyperlink{tr__raid5_8c_a510a1e68002060a03c5ee38235b544a8}{g\_raid\_tr\_update\_state\_raid5}}(\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}, NULL);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00208}00208         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00209}00209 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00210}00210 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00211}00211 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00212}\mbox{\hyperlink{tr__raid5_8c_af737e92da8fabdb5dfb13c99edc18c28}{00212}} \mbox{\hyperlink{tr__raid5_8c_af737e92da8fabdb5dfb13c99edc18c28}{g\_raid\_tr\_iostart\_raid5\_read}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr, \textcolor{keyword}{struct} bio *\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00213}00213 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00214}00214         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00215}00215         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00216}00216         \textcolor{keyword}{struct }bio\_queue\_head queue;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00217}00217         \textcolor{keyword}{struct }bio *cbp;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00218}00218         \textcolor{keywordtype}{char} *addr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00219}00219         off\_t \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}}, \mbox{\hyperlink{g__raid__tr__if_8m_a17b9425cc13d593841ed2c2054a14e26}{start}}, \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}}, nstripe, remain;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00220}00220         \textcolor{keywordtype}{int} no, pno, ddisks, pdisks, protate, pleft;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00221}00221         u\_int strip\_size, lvl, qual;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00222}00222 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00223}00223         \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}} = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00224}00224         addr = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_data;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00225}00225         strip\_size = \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_af0ca6a1c61e893f02a43ca29953c8e39}{v\_strip\_size}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00226}00226         lvl = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ab7c2840f8398e5a91b560d7644957a57}{v\_raid\_level}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00227}00227         qual = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ad17bb2da7eadd462f1f27551cb1da76f}{v\_raid\_level\_qualifier}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00228}00228         protate = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_acc7b914ca21bf82a17fdcfa398b5874d}{v\_rotate\_parity}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00229}00229 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00230}00230         \textcolor{comment}{/* Stripe number. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00231}00231         nstripe = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_offset / strip\_size;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00232}00232         \textcolor{comment}{/* Start position in stripe. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00233}00233         \mbox{\hyperlink{g__raid__tr__if_8m_a17b9425cc13d593841ed2c2054a14e26}{start}} = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_offset \% strip\_size;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00234}00234         \textcolor{comment}{/* Number of data and parity disks. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00235}00235         \textcolor{keywordflow}{if} (lvl == \mbox{\hyperlink{g__raid_8h_a19e2cce955b69aa2bf41cd3e5a7abef5}{G\_RAID\_VOLUME\_RL\_RAIDMDF}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00236}00236                 pdisks = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}}-\/>\mbox{\hyperlink{structg__raid__volume_ad4d86ae1a829f252576ec42ded56fee1}{v\_mdf\_pdisks}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00237}00237         \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (lvl == \mbox{\hyperlink{g__raid_8h_a0cb08361a3a264ef642c48a2fb149487}{G\_RAID\_VOLUME\_RL\_RAID5EE}} ||}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00238}00238             lvl == \mbox{\hyperlink{g__raid_8h_a1da2baddf7f8a628b3255449076ac9da}{G\_RAID\_VOLUME\_RL\_RAID6}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00239}00239                 pdisks = 2;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00240}00240         \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00241}00241                 pdisks = 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00242}00242         ddisks = \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} -\/ pdisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00243}00243         \textcolor{comment}{/* Parity disk number. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00244}00244         \textcolor{keywordflow}{if} (lvl == \mbox{\hyperlink{g__raid_8h_ad9d81b49aca2a8e45711960756ee1b64}{G\_RAID\_VOLUME\_RL\_RAID4}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00245}00245                 \textcolor{keywordflow}{if} (qual == 0)          \textcolor{comment}{/* P0 */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00246}00246                         pno = 0;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00247}00247                 \textcolor{keywordflow}{else}                    \textcolor{comment}{/* PN */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00248}00248                         pno = ddisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00249}00249                 pleft = -\/1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00250}00250         \} \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00251}00251                 pno = (nstripe / (ddisks * protate)) \% \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00252}00252                 pleft = protate -\/ (nstripe / ddisks) \% protate;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00253}00253                 \textcolor{keywordflow}{if} (qual >= 2) \{        \textcolor{comment}{/* PN/Left */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00254}00254                         pno = ddisks -\/ pno;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00255}00255                         \textcolor{keywordflow}{if} (pno < 0)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00256}00256                                 pno += \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00257}00257                 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00258}00258         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00259}00259         \textcolor{comment}{/* Data disk number. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00260}00260         no = nstripe \% ddisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00261}00261         \textcolor{keywordflow}{if} (lvl == \mbox{\hyperlink{g__raid_8h_ad9d81b49aca2a8e45711960756ee1b64}{G\_RAID\_VOLUME\_RL\_RAID4}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00262}00262                 \textcolor{keywordflow}{if} (qual == 0)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00263}00263                         no += pdisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00264}00264         \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (qual \& 1) \{  \textcolor{comment}{/* Continuation/Symmetric */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00265}00265                 no = (pno + pdisks + no) \% \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00266}00266         \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (no >= pno)   \textcolor{comment}{/* Restart/Asymmetric */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00267}00267                 no += pdisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00268}00268         \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00269}00269                 no += imax(0, pno + pdisks -\/ \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00270}00270         \textcolor{comment}{/* Stripe start position in disk. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00271}00271         \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}} = (nstripe / ddisks) * strip\_size;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00272}00272         \textcolor{comment}{/* Length of data to operate. */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00273}00273         remain = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_length;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00274}00274 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00275}00275         bioq\_init(\&queue);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00276}00276         \textcolor{keywordflow}{do} \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00277}00277                 \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}} = MIN(strip\_size -\/ \mbox{\hyperlink{g__raid__tr__if_8m_a17b9425cc13d593841ed2c2054a14e26}{start}}, remain);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00278}00278                 cbp = \mbox{\hyperlink{geom_8h_a4ef26e4ec68e35e8f892692c524a3d4f}{g\_clone\_bio}}(\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00279}00279                 \textcolor{keywordflow}{if} (cbp == NULL)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00280}00280                         \textcolor{keywordflow}{goto} failure;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00281}00281                 cbp-\/>bio\_offset = \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}} + \mbox{\hyperlink{g__raid__tr__if_8m_a17b9425cc13d593841ed2c2054a14e26}{start}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00282}00282                 cbp-\/>bio\_data = addr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00283}00283                 cbp-\/>bio\_length = \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00284}00284                 cbp-\/>bio\_caller1 = \&\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a3c43185db4bd1c4818d95a415635854b}{v\_subdisks}}[no];}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00285}00285                 bioq\_insert\_tail(\&queue, cbp);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00286}00286                 no++;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00287}00287                 \textcolor{keywordflow}{if} (lvl == \mbox{\hyperlink{g__raid_8h_ad9d81b49aca2a8e45711960756ee1b64}{G\_RAID\_VOLUME\_RL\_RAID4}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00288}00288                         no \%= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00289}00289                         \textcolor{keywordflow}{if} (no == pno)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00290}00290                                 no = (no + pdisks) \% \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00291}00291                 \} \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (qual \& 1) \{  \textcolor{comment}{/* Continuation/Symmetric */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00292}00292                         no \%= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00293}00293                         \textcolor{keywordflow}{if} (no == pno) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00294}00294                                 \textcolor{keywordflow}{if} ((-\/-\/pleft) <= 0) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00295}00295                                         pleft += protate;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00296}00296                                         \textcolor{keywordflow}{if} (qual < 2)   \textcolor{comment}{/* P0/Right */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00297}00297                                                 pno++;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00298}00298                                         \textcolor{keywordflow}{else}            \textcolor{comment}{/* PN/Left */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00299}00299                                                 pno += \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} -\/ 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00300}00300                                         pno \%= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00301}00301                                 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00302}00302                                 no = (pno + pdisks) \% \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00303}00303                                 \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}} += strip\_size;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00304}00304                         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00305}00305                 \} \textcolor{keywordflow}{else} \{                \textcolor{comment}{/* Restart/Asymmetric */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00306}00306                         \textcolor{keywordflow}{if} (no == pno)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00307}00307                                 no += pdisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00308}00308                         \textcolor{keywordflow}{if} (no >= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00309}00309                                 no -\/= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00310}00310                                 \textcolor{keywordflow}{if} ((-\/-\/pleft) <= 0) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00311}00311                                         pleft += protate;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00312}00312                                         \textcolor{keywordflow}{if} (qual < 2)   \textcolor{comment}{/* P0/Right */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00313}00313                                                 pno++;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00314}00314                                         \textcolor{keywordflow}{else}            \textcolor{comment}{/* PN/Left */}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00315}00315                                                 pno += \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}} -\/ 1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00316}00316                                         pno \%= \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00317}00317                                 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00318}00318                                 \textcolor{keywordflow}{if} (no == pno)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00319}00319                                         no += pdisks;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00320}00320                                 \textcolor{keywordflow}{else}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00321}00321                                         no += imax(0, pno + pdisks -\/ \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a21482a5ac78a397faf4e95eb1ebef431}{v\_disks\_count}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00322}00322                                 \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}} += strip\_size;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00323}00323                         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00324}00324                 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00325}00325                 remain -\/= \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00326}00326                 addr += \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00327}00327                 \mbox{\hyperlink{g__raid__tr__if_8m_a17b9425cc13d593841ed2c2054a14e26}{start}} = 0;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00328}00328         \} \textcolor{keywordflow}{while} (remain > 0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00329}00329         \textcolor{keywordflow}{while} ((cbp = bioq\_takefirst(\&queue)) != NULL) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00330}00330                 \mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}} = cbp-\/>bio\_caller1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00331}00331                 cbp-\/>bio\_caller1 = NULL;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00332}00332                 \mbox{\hyperlink{g__raid_8c_a685376bcb4756d784a9a433ced731e79}{g\_raid\_subdisk\_iostart}}(\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}}, cbp);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00333}00333         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00334}00334         \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00335}00335 failure:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00336}00336         \textcolor{keywordflow}{while} ((cbp = bioq\_takefirst(\&queue)) != NULL)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00337}00337                 \mbox{\hyperlink{geom_8h_ae3cbea7d4bf48f25bb609df3d3f0bb28}{g\_destroy\_bio}}(cbp);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00338}00338         \textcolor{keywordflow}{if} (\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_error == 0)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00339}00339                 \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_error = ENOMEM;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00340}00340         \mbox{\hyperlink{g__raid_8c_aac26055db228a9070904855aa7fcec89}{g\_raid\_iodone}}(\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}, \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_error);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00341}00341 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00342}00342 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00343}00343 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00344}\mbox{\hyperlink{tr__raid5_8c_a5d0842ebd38b3a07eb9b57119ec6bc20}{00344}} \mbox{\hyperlink{tr__raid5_8c_a46c7b306a519f68b1187d1f95c4d2caf}{g\_raid\_tr\_iostart\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr, \textcolor{keyword}{struct} bio *\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00345}00345 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00346}00346         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__volume}{g\_raid\_volume}} *\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00347}00347 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00348}00348         \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}} = tr-\/>\mbox{\hyperlink{structg__raid__tr__object_adda608cedccd305f267d8593f2bebe7f}{tro\_volume}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00349}00349         \textcolor{keywordflow}{if} (\mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_a5a90d68c226a2ae59ff670759f9cad28}{v\_state}} < \mbox{\hyperlink{g__raid_8h_a48e4e755439965447a7116e19309dd16}{G\_RAID\_VOLUME\_S\_SUBOPTIMAL}}) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00350}00350                 \mbox{\hyperlink{g__raid_8c_aac26055db228a9070904855aa7fcec89}{g\_raid\_iodone}}(\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}, EIO);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00351}00351                 \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00352}00352         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00353}00353         \textcolor{keywordflow}{switch} (\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_cmd) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00354}00354         \textcolor{keywordflow}{case} BIO\_READ:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00355}00355                 \mbox{\hyperlink{tr__raid5_8c_af737e92da8fabdb5dfb13c99edc18c28}{g\_raid\_tr\_iostart\_raid5\_read}}(tr, \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00356}00356                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00357}00357         \textcolor{keywordflow}{case} BIO\_WRITE:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00358}00358         \textcolor{keywordflow}{case} BIO\_DELETE:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00359}00359         \textcolor{keywordflow}{case} BIO\_FLUSH:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00360}00360         \textcolor{keywordflow}{case} BIO\_SPEEDUP:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00361}00361                 \mbox{\hyperlink{g__raid_8c_aac26055db228a9070904855aa7fcec89}{g\_raid\_iodone}}(\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}, ENODEV);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00362}00362                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00363}00363         \textcolor{keywordflow}{default}:}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00364}00364                 KASSERT(1 == 0, (\textcolor{stringliteral}{"{}Invalid command here: \%u (volume=\%s)"{}},}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00365}00365                     \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_cmd, \mbox{\hyperlink{g__raid__md__if_8m_aaa46aabd2a891668d71cec64e90b4848}{vol}}-\/>\mbox{\hyperlink{structg__raid__volume_abdedb24b3ca3f4d3020f94e62d63fa05}{v\_name}}));}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00366}00366                 \textcolor{keywordflow}{break};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00367}00367         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00368}00368 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00369}00369 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00370}00370 \textcolor{keyword}{static} \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00371}\mbox{\hyperlink{tr__raid5_8c_a41eecbda7754f56deade3a138eacd487}{00371}} \mbox{\hyperlink{tr__raid5_8c_a02a69136bbe11631708eb9f2d30a26d3}{g\_raid\_tr\_iodone\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr,}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00372}00372     \textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}}, \textcolor{keyword}{struct} bio *\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00373}00373 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00374}00374         \textcolor{keyword}{struct }bio *pbp;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00375}00375 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00376}00376         pbp = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_parent;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00377}00377         \textcolor{keywordflow}{if} (pbp-\/>bio\_error == 0)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00378}00378                 pbp-\/>bio\_error = \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_error;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00379}00379         pbp-\/>bio\_inbed++;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00380}00380         \mbox{\hyperlink{geom_8h_ae3cbea7d4bf48f25bb609df3d3f0bb28}{g\_destroy\_bio}}(\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00381}00381         \textcolor{keywordflow}{if} (pbp-\/>bio\_children == pbp-\/>bio\_inbed) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00382}00382                 pbp-\/>bio\_completed = pbp-\/>bio\_length;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00383}00383                 \mbox{\hyperlink{g__raid_8c_aac26055db228a9070904855aa7fcec89}{g\_raid\_iodone}}(pbp, pbp-\/>bio\_error);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00384}00384         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00385}00385 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00386}00386 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00387}00387 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00388}\mbox{\hyperlink{tr__raid5_8c_a44200b86ddc1cbc610d556111c96fbcf}{00388}} \mbox{\hyperlink{tr__raid5_8c_a9bafe0d87ee6ccda607d63037c3572bf}{g\_raid\_tr\_kerneldump\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr,}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00389}00389     \textcolor{keywordtype}{void} *\textcolor{keyword}{virtual}, vm\_offset\_t \mbox{\hyperlink{g__raid__tr__if_8m_a27729ff5ed96d4c7c45950d01a07c654}{physical}}, off\_t \mbox{\hyperlink{g__raid__tr__if_8m_ad5f0842c40c7e46344fd8df70187fa0f}{offset}}, \textcolor{keywordtype}{size\_t} \mbox{\hyperlink{g__raid__tr__if_8m_ae809d5359ac030c60a30a8f0b2294b82}{length}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00390}00390 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00391}00391 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00392}00392         \textcolor{keywordflow}{return} (ENODEV);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00393}00393 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00394}00394 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00395}00395 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00396}\mbox{\hyperlink{tr__raid5_8c_af730b2dcffef1f67d8e3bb4510f405d8}{00396}} \mbox{\hyperlink{tr__raid5_8c_abd0c52e71000d1e4fd7b341240de9705}{g\_raid\_tr\_locked\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr, \textcolor{keywordtype}{void} *\mbox{\hyperlink{g__raid__tr__if_8m_a246ef34fa2df332898e5b96c81d46f5e}{argp}})}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00397}00397 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00398}00398         \textcolor{keyword}{struct }bio *\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00399}00399         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00400}00400 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00401}00401         \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}} = (\textcolor{keyword}{struct }bio *)\mbox{\hyperlink{g__raid__tr__if_8m_a246ef34fa2df332898e5b96c81d46f5e}{argp}};}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00402}00402         \mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}} = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__subdisk}{g\_raid\_subdisk}} *)\mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}}-\/>bio\_caller1;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00403}00403         \mbox{\hyperlink{g__raid_8c_a685376bcb4756d784a9a433ced731e79}{g\_raid\_subdisk\_iostart}}(\mbox{\hyperlink{g__raid__md__if_8m_a910062273088d146e8533398780701eb}{sd}}, \mbox{\hyperlink{g__part__if_8m_a3786db8db96c32f69df9f7cd325a7507}{bp}});}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00404}00404 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00405}00405         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00406}00406 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00407}00407 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00408}00408 \textcolor{keyword}{static} \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00409}\mbox{\hyperlink{tr__raid5_8c_a6ab22a73b14be60fc42b3dd567547378}{00409}} \mbox{\hyperlink{tr__raid5_8c_a74ddc1abc50c0342ab2518d307d5781c}{g\_raid\_tr\_free\_raid5}}(\textcolor{keyword}{struct} \mbox{\hyperlink{structg__raid__tr__object}{g\_raid\_tr\_object}} *tr)}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00410}00410 \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00411}00411         \textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *trs;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00412}00412 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00413}00413         trs = (\textcolor{keyword}{struct }\mbox{\hyperlink{structg__raid__tr__raid5__object}{g\_raid\_tr\_raid5\_object}} *)tr;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00414}00414 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00415}00415         \textcolor{keywordflow}{if} (trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_ac502bf0a7dfe62e22101b94a434dd85e}{trso\_buffer}} != NULL) \{}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00416}00416                 \mbox{\hyperlink{g__raid__md__if_8m_a4df9edb2717b3f7e4c3c903878577a54}{free}}(trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_ac502bf0a7dfe62e22101b94a434dd85e}{trso\_buffer}}, M\_TR\_RAID5);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00417}00417                 trs-\/>\mbox{\hyperlink{structg__raid__tr__raid5__object_ac502bf0a7dfe62e22101b94a434dd85e}{trso\_buffer}} = NULL;}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00418}00418         \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00419}00419         \textcolor{keywordflow}{return} (0);}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00420}00420 \}}
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00421}00421 }
\DoxyCodeLine{\Hypertarget{tr__raid5_8c_source_l00422}\mbox{\hyperlink{tr__raid5_8c_ac2207634e540d5b5226fcdbcb851aa42}{00422}} \mbox{\hyperlink{tr__raid5_8c_ac2207634e540d5b5226fcdbcb851aa42}{G\_RAID\_TR\_DECLARE}}(raid5, \textcolor{stringliteral}{"{}RAID5"{}});}

\end{DoxyCode}
