\hypertarget{geom__vinum__drive_8c}{}\doxysection{geom/vinum/geom\+\_\+vinum\+\_\+drive.c File Reference}
\label{geom__vinum__drive_8c}\index{geom/vinum/geom\_vinum\_drive.c@{geom/vinum/geom\_vinum\_drive.c}}
{\ttfamily \#include $<$sys/cdefs.\+h$>$}\newline
{\ttfamily \#include $<$sys/types.\+h$>$}\newline
{\ttfamily \#include $<$sys/endian.\+h$>$}\newline
{\ttfamily \#include $<$sys/malloc.\+h$>$}\newline
{\ttfamily \#include $<$sys/sbuf.\+h$>$}\newline
{\ttfamily \#include $<$sys/systm.\+h$>$}\newline
{\ttfamily \#include $<$geom/geom.\+h$>$}\newline
{\ttfamily \#include $<$geom/geom\+\_\+dbg.\+h$>$}\newline
{\ttfamily \#include $<$geom/vinum/geom\+\_\+vinum\+\_\+var.\+h$>$}\newline
{\ttfamily \#include $<$geom/vinum/geom\+\_\+vinum.\+h$>$}\newline
Include dependency graph for geom\+\_\+vinum\+\_\+drive.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d4/db6/geom__vinum__drive_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_a76d75c960d05f3940664a264de8ad557}{GV\+\_\+\+LEGACY\+\_\+\+I386}}~0
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_a5402bc52655cc629624c78f81bf3bf4a}{GV\+\_\+\+LEGACY\+\_\+\+AMD64}}~1
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_ae13c272dab4e657343d4a8e85363c061}{GV\+\_\+\+LEGACY\+\_\+\+SPARC64}}~2
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_adb70fccbe32679db925e5288b5128dad}{GV\+\_\+\+LEGACY\+\_\+\+POWERPC}}~3
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_a69186680bab5f2de674370ed7c7ba336}{GV\+\_\+\+GET32}}(endian)
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_a253645243e48596c94cacb58e77f8467}{GV\+\_\+\+GET64}}(endian)
\item 
\#define \mbox{\hyperlink{geom__vinum__drive_8c_a9c4acd760c44d5ee2f25d3b3b0c1df9f}{GV\+\_\+\+SET64\+BE}}(field)
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{geom__vinum__drive_8c_a8c3ef283470a68cd30afe9b8a72cb60f}{\+\_\+\+\_\+\+FBSDID}} (\char`\"{}\$Free\+BSD\$\char`\"{})
\item 
static int \mbox{\hyperlink{geom__vinum__drive_8c_a828ea06052039d3009966317c6b369f3}{gv\+\_\+legacy\+\_\+header\+\_\+type}} (\mbox{\hyperlink{binstream_8h_ab077fa1127453be2bd9d4c3c8a768fa7}{uint8\+\_\+t}} $\ast$, int)
\item 
int \mbox{\hyperlink{geom__vinum__drive_8c_ab1b7f1dab86a822375dd4443ba394888}{gv\+\_\+read\+\_\+header}} (struct \mbox{\hyperlink{structg__consumer}{g\+\_\+consumer}} $\ast$\mbox{\hyperlink{g__raid__md__if_8m_a3d8e3ec9f529e77fa46f92363b115a01}{cp}}, struct \mbox{\hyperlink{structgv__hdr}{gv\+\_\+hdr}} $\ast$m\+\_\+hdr)
\item 
int \mbox{\hyperlink{geom__vinum__drive_8c_a651cce3d7d64094a9e8b38a9004ad81c}{gv\+\_\+write\+\_\+header}} (struct \mbox{\hyperlink{structg__consumer}{g\+\_\+consumer}} $\ast$\mbox{\hyperlink{g__raid__md__if_8m_a3d8e3ec9f529e77fa46f92363b115a01}{cp}}, struct \mbox{\hyperlink{structgv__hdr}{gv\+\_\+hdr}} $\ast$m\+\_\+hdr)
\item 
void \mbox{\hyperlink{geom__vinum__drive_8c_a1bf3f6e64a701267a37c6f6077dc0d0e}{gv\+\_\+save\+\_\+config}} (struct \mbox{\hyperlink{structgv__softc}{gv\+\_\+softc}} $\ast$sc)
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{geom__vinum__drive_8c_a69186680bab5f2de674370ed7c7ba336}\label{geom__vinum__drive_8c_a69186680bab5f2de674370ed7c7ba336}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_GET32@{GV\_GET32}}
\index{GV\_GET32@{GV\_GET32}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_GET32}{GV\_GET32}}
{\footnotesize\ttfamily \#define GV\+\_\+\+GET32(\begin{DoxyParamCaption}\item[{}]{endian }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{                endian\#\#32toh(*((uint32\_t *)\&d\_hdr[off]));      \(\backslash\)}
\DoxyCodeLine{                off += 4}

\end{DoxyCode}
\mbox{\Hypertarget{geom__vinum__drive_8c_a253645243e48596c94cacb58e77f8467}\label{geom__vinum__drive_8c_a253645243e48596c94cacb58e77f8467}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_GET64@{GV\_GET64}}
\index{GV\_GET64@{GV\_GET64}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_GET64}{GV\_GET64}}
{\footnotesize\ttfamily \#define GV\+\_\+\+GET64(\begin{DoxyParamCaption}\item[{}]{endian }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{                endian\#\#64toh(*((uint64\_t *)\&d\_hdr[off]));      \(\backslash\)}
\DoxyCodeLine{                off += 8}

\end{DoxyCode}
\mbox{\Hypertarget{geom__vinum__drive_8c_a5402bc52655cc629624c78f81bf3bf4a}\label{geom__vinum__drive_8c_a5402bc52655cc629624c78f81bf3bf4a}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_LEGACY\_AMD64@{GV\_LEGACY\_AMD64}}
\index{GV\_LEGACY\_AMD64@{GV\_LEGACY\_AMD64}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_LEGACY\_AMD64}{GV\_LEGACY\_AMD64}}
{\footnotesize\ttfamily \#define GV\+\_\+\+LEGACY\+\_\+\+AMD64~1}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00044}{44}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.

\mbox{\Hypertarget{geom__vinum__drive_8c_a76d75c960d05f3940664a264de8ad557}\label{geom__vinum__drive_8c_a76d75c960d05f3940664a264de8ad557}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_LEGACY\_I386@{GV\_LEGACY\_I386}}
\index{GV\_LEGACY\_I386@{GV\_LEGACY\_I386}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_LEGACY\_I386}{GV\_LEGACY\_I386}}
{\footnotesize\ttfamily \#define GV\+\_\+\+LEGACY\+\_\+\+I386~0}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00043}{43}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.

\mbox{\Hypertarget{geom__vinum__drive_8c_adb70fccbe32679db925e5288b5128dad}\label{geom__vinum__drive_8c_adb70fccbe32679db925e5288b5128dad}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_LEGACY\_POWERPC@{GV\_LEGACY\_POWERPC}}
\index{GV\_LEGACY\_POWERPC@{GV\_LEGACY\_POWERPC}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_LEGACY\_POWERPC}{GV\_LEGACY\_POWERPC}}
{\footnotesize\ttfamily \#define GV\+\_\+\+LEGACY\+\_\+\+POWERPC~3}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00046}{46}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.

\mbox{\Hypertarget{geom__vinum__drive_8c_ae13c272dab4e657343d4a8e85363c061}\label{geom__vinum__drive_8c_ae13c272dab4e657343d4a8e85363c061}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_LEGACY\_SPARC64@{GV\_LEGACY\_SPARC64}}
\index{GV\_LEGACY\_SPARC64@{GV\_LEGACY\_SPARC64}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_LEGACY\_SPARC64}{GV\_LEGACY\_SPARC64}}
{\footnotesize\ttfamily \#define GV\+\_\+\+LEGACY\+\_\+\+SPARC64~2}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00045}{45}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.

\mbox{\Hypertarget{geom__vinum__drive_8c_a9c4acd760c44d5ee2f25d3b3b0c1df9f}\label{geom__vinum__drive_8c_a9c4acd760c44d5ee2f25d3b3b0c1df9f}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!GV\_SET64BE@{GV\_SET64BE}}
\index{GV\_SET64BE@{GV\_SET64BE}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{GV\_SET64BE}{GV\_SET64BE}}
{\footnotesize\ttfamily \#define GV\+\_\+\+SET64\+BE(\begin{DoxyParamCaption}\item[{}]{field }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{        \textcolor{keywordflow}{do} \{                                                    \(\backslash\)}
\DoxyCodeLine{                *((uint64\_t *)\&d\_hdr[off]) = htobe64(field);    \(\backslash\)}
\DoxyCodeLine{                off += 8;                                       \(\backslash\)}
\DoxyCodeLine{        \} \textcolor{keywordflow}{while} (0)}

\end{DoxyCode}


\doxysubsection{Function Documentation}
\mbox{\Hypertarget{geom__vinum__drive_8c_a8c3ef283470a68cd30afe9b8a72cb60f}\label{geom__vinum__drive_8c_a8c3ef283470a68cd30afe9b8a72cb60f}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!\_\_FBSDID@{\_\_FBSDID}}
\index{\_\_FBSDID@{\_\_FBSDID}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{\_\_FBSDID()}{\_\_FBSDID()}}
{\footnotesize\ttfamily \+\_\+\+\_\+\+FBSDID (\begin{DoxyParamCaption}\item[{\char`\"{}\$Free\+BSD\$\char`\"{}}]{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{geom__vinum__drive_8c_a828ea06052039d3009966317c6b369f3}\label{geom__vinum__drive_8c_a828ea06052039d3009966317c6b369f3}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!gv\_legacy\_header\_type@{gv\_legacy\_header\_type}}
\index{gv\_legacy\_header\_type@{gv\_legacy\_header\_type}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{gv\_legacy\_header\_type()}{gv\_legacy\_header\_type()}}
{\footnotesize\ttfamily static int gv\+\_\+legacy\+\_\+header\+\_\+type (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{binstream_8h_ab077fa1127453be2bd9d4c3c8a768fa7}{uint8\+\_\+t}} $\ast$}]{hdr,  }\item[{int}]{bigendian }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00076}{76}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.



References \mbox{\hyperlink{geom__vinum__drive_8c_source_l00044}{GV\+\_\+\+LEGACY\+\_\+\+AMD64}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00043}{GV\+\_\+\+LEGACY\+\_\+\+I386}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00046}{GV\+\_\+\+LEGACY\+\_\+\+POWERPC}}, and \mbox{\hyperlink{geom__vinum__drive_8c_source_l00045}{GV\+\_\+\+LEGACY\+\_\+\+SPARC64}}.



Referenced by \mbox{\hyperlink{geom__vinum__drive_8c_source_l00114}{gv\+\_\+read\+\_\+header()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_a828ea06052039d3009966317c6b369f3_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{geom__vinum__drive_8c_ab1b7f1dab86a822375dd4443ba394888}\label{geom__vinum__drive_8c_ab1b7f1dab86a822375dd4443ba394888}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!gv\_read\_header@{gv\_read\_header}}
\index{gv\_read\_header@{gv\_read\_header}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{gv\_read\_header()}{gv\_read\_header()}}
{\footnotesize\ttfamily int gv\+\_\+read\+\_\+header (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structg__consumer}{g\+\_\+consumer}} $\ast$}]{cp,  }\item[{struct \mbox{\hyperlink{structgv__hdr}{gv\+\_\+hdr}} $\ast$}]{m\+\_\+hdr }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00114}{114}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.



References \mbox{\hyperlink{geom__vinum__var_8h_source_l00163}{gv\+\_\+hdr\+::config\+\_\+length}}, \mbox{\hyperlink{g__part__if_8m_source_l00233}{cp}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00150}{gv\+\_\+label\+::date\+\_\+of\+\_\+birth}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00152}{gv\+\_\+label\+::drive\+\_\+size}}, \mbox{\hyperlink{geom_8h_source_l00376}{g\+\_\+free()}}, \mbox{\hyperlink{geom__io_8c_source_l00870}{g\+\_\+read\+\_\+data()}}, \mbox{\hyperlink{geom__vinum_8h_source_l00160}{G\+\_\+\+VINUM\+\_\+\+DEBUG}}, \mbox{\hyperlink{geom__vinum__drive_8c_a69186680bab5f2de674370ed7c7ba336}{GV\+\_\+\+GET32}}, \mbox{\hyperlink{geom__vinum__drive_8c_a253645243e48596c94cacb58e77f8467}{GV\+\_\+\+GET64}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00071}{GV\+\_\+\+HDR\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00070}{GV\+\_\+\+HDR\+\_\+\+OFFSET}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00146}{GV\+\_\+\+HOSTNAME\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00076}{gv\+\_\+legacy\+\_\+header\+\_\+type()}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00043}{GV\+\_\+\+LEGACY\+\_\+\+I386}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00046}{GV\+\_\+\+LEGACY\+\_\+\+POWERPC}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00045}{GV\+\_\+\+LEGACY\+\_\+\+SPARC64}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00160}{GV\+\_\+\+MAGIC}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00079}{GV\+\_\+\+MAXDRIVENAME}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00158}{GV\+\_\+\+OLD\+\_\+\+MAGIC}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00164}{gv\+\_\+hdr\+::label}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00151}{gv\+\_\+label\+::last\+\_\+update}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00157}{gv\+\_\+hdr\+::magic}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00149}{gv\+\_\+label\+::name}}, \mbox{\hyperlink{g__part__if_8m_source_l00130}{pp}}, \mbox{\hyperlink{geom_8h_source_l00178}{g\+\_\+consumer\+::provider}}, \mbox{\hyperlink{geom_8h_source_l00215}{g\+\_\+provider\+::sectorsize}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00148}{gv\+\_\+label\+::sysname}}, and \mbox{\hyperlink{binstream_8h_source_l00037}{uint8\+\_\+t}}.



Referenced by \mbox{\hyperlink{geom__vinum__events_8c_source_l00102}{gv\+\_\+drive\+\_\+tasted()}}, and \mbox{\hyperlink{geom__vinum_8c_source_l00583}{gv\+\_\+taste()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_ab1b7f1dab86a822375dd4443ba394888_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_ab1b7f1dab86a822375dd4443ba394888_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{geom__vinum__drive_8c_a1bf3f6e64a701267a37c6f6077dc0d0e}\label{geom__vinum__drive_8c_a1bf3f6e64a701267a37c6f6077dc0d0e}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!gv\_save\_config@{gv\_save\_config}}
\index{gv\_save\_config@{gv\_save\_config}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{gv\_save\_config()}{gv\_save\_config()}}
{\footnotesize\ttfamily void gv\+\_\+save\+\_\+config (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structgv__softc}{gv\+\_\+softc}} $\ast$}]{sc }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00264}{264}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.



References \mbox{\hyperlink{geom__vinum__var_8h_source_l00163}{gv\+\_\+hdr\+::config\+\_\+length}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00265}{gv\+\_\+drive\+::consumer}}, \mbox{\hyperlink{g__part__if_8m_source_l00233}{cp}}, \mbox{\hyperlink{geom__subr_8c_source_l00944}{g\+\_\+access()}}, \mbox{\hyperlink{geom_8h_source_l00376}{g\+\_\+free()}}, \mbox{\hyperlink{geom_8h_source_l00367}{g\+\_\+malloc()}}, \mbox{\hyperlink{geom_8h_source_l00389}{g\+\_\+topology\+\_\+lock}}, \mbox{\hyperlink{geom_8h_source_l00396}{g\+\_\+topology\+\_\+unlock}}, \mbox{\hyperlink{geom__vinum_8h_source_l00160}{G\+\_\+\+VINUM\+\_\+\+DEBUG}}, \mbox{\hyperlink{geom__io_8c_source_l00928}{g\+\_\+write\+\_\+data()}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00073}{GV\+\_\+\+CFG\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00072}{GV\+\_\+\+CFG\+\_\+\+OFFSET}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00253}{GV\+\_\+\+DRIVE\+\_\+\+UP}}, \mbox{\hyperlink{geom__vinum__subr_8c_source_l00183}{gv\+\_\+format\+\_\+config()}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00071}{GV\+\_\+\+HDR\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00160}{GV\+\_\+\+MAGIC}}, \mbox{\hyperlink{geom__vinum__drive_8c_source_l00230}{gv\+\_\+write\+\_\+header()}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00263}{gv\+\_\+drive\+::hdr}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00164}{gv\+\_\+hdr\+::label}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00151}{gv\+\_\+label\+::last\+\_\+update}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00157}{gv\+\_\+hdr\+::magic}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00249}{gv\+\_\+drive\+::name}}, \mbox{\hyperlink{g__part__if_8m_source_l00157}{sb}}, and \mbox{\hyperlink{geom__vinum__var_8h_source_l00251}{gv\+\_\+drive\+::state}}.



Referenced by \mbox{\hyperlink{geom__vinum__subr_8c_source_l01124}{gv\+\_\+attach\+\_\+plex()}}, \mbox{\hyperlink{geom__vinum__subr_8c_source_l01168}{gv\+\_\+attach\+\_\+sd()}}, \mbox{\hyperlink{geom__vinum__subr_8c_source_l01216}{gv\+\_\+detach\+\_\+plex()}}, \mbox{\hyperlink{geom__vinum__subr_8c_source_l01251}{gv\+\_\+detach\+\_\+sd()}}, \mbox{\hyperlink{geom__vinum__events_8c_source_l00218}{gv\+\_\+drive\+\_\+lost()}}, \mbox{\hyperlink{geom__vinum__move_8c_source_l00105}{gv\+\_\+move\+\_\+sd()}}, \mbox{\hyperlink{geom__vinum__plex_8c_source_l00994}{gv\+\_\+rebuild\+\_\+complete()}}, \mbox{\hyperlink{geom__vinum__rm_8c_source_l00303}{gv\+\_\+rm\+\_\+drive()}}, \mbox{\hyperlink{geom__vinum__state_8c_source_l00125}{gv\+\_\+set\+\_\+drive\+\_\+state()}}, \mbox{\hyperlink{geom__vinum__state_8c_source_l00285}{gv\+\_\+set\+\_\+plex\+\_\+state()}}, \mbox{\hyperlink{geom__vinum__state_8c_source_l00157}{gv\+\_\+set\+\_\+sd\+\_\+state()}}, \mbox{\hyperlink{geom__vinum__state_8c_source_l00340}{gv\+\_\+set\+\_\+vol\+\_\+state()}}, and \mbox{\hyperlink{geom__vinum_8c_source_l00629}{gv\+\_\+worker()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_a1bf3f6e64a701267a37c6f6077dc0d0e_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_a1bf3f6e64a701267a37c6f6077dc0d0e_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{geom__vinum__drive_8c_a651cce3d7d64094a9e8b38a9004ad81c}\label{geom__vinum__drive_8c_a651cce3d7d64094a9e8b38a9004ad81c}} 
\index{geom\_vinum\_drive.c@{geom\_vinum\_drive.c}!gv\_write\_header@{gv\_write\_header}}
\index{gv\_write\_header@{gv\_write\_header}!geom\_vinum\_drive.c@{geom\_vinum\_drive.c}}
\doxysubsubsection{\texorpdfstring{gv\_write\_header()}{gv\_write\_header()}}
{\footnotesize\ttfamily int gv\+\_\+write\+\_\+header (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structg__consumer}{g\+\_\+consumer}} $\ast$}]{cp,  }\item[{struct \mbox{\hyperlink{structgv__hdr}{gv\+\_\+hdr}} $\ast$}]{m\+\_\+hdr }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{geom__vinum__drive_8c_source_l00230}{230}} of file \mbox{\hyperlink{geom__vinum__drive_8c_source}{geom\+\_\+vinum\+\_\+drive.\+c}}.



References \mbox{\hyperlink{geom__vinum__var_8h_source_l00163}{gv\+\_\+hdr\+::config\+\_\+length}}, \mbox{\hyperlink{g__part__if_8m_source_l00233}{cp}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00150}{gv\+\_\+label\+::date\+\_\+of\+\_\+birth}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00152}{gv\+\_\+label\+::drive\+\_\+size}}, \mbox{\hyperlink{geom__io_8c_source_l00928}{g\+\_\+write\+\_\+data()}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00071}{GV\+\_\+\+HDR\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00070}{GV\+\_\+\+HDR\+\_\+\+OFFSET}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00146}{GV\+\_\+\+HOSTNAME\+\_\+\+LEN}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00079}{GV\+\_\+\+MAXDRIVENAME}}, \mbox{\hyperlink{geom__vinum__drive_8c_a9c4acd760c44d5ee2f25d3b3b0c1df9f}{GV\+\_\+\+SET64\+BE}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00164}{gv\+\_\+hdr\+::label}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00151}{gv\+\_\+label\+::last\+\_\+update}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00157}{gv\+\_\+hdr\+::magic}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00149}{gv\+\_\+label\+::name}}, \mbox{\hyperlink{geom__vinum__var_8h_source_l00148}{gv\+\_\+label\+::sysname}}, and \mbox{\hyperlink{binstream_8h_source_l00037}{uint8\+\_\+t}}.



Referenced by \mbox{\hyperlink{geom__vinum__rm_8c_source_l00303}{gv\+\_\+rm\+\_\+drive()}}, and \mbox{\hyperlink{geom__vinum__drive_8c_source_l00264}{gv\+\_\+save\+\_\+config()}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_a651cce3d7d64094a9e8b38a9004ad81c_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d0/d2f/geom__vinum__drive_8c_a651cce3d7d64094a9e8b38a9004ad81c_icgraph}
\end{center}
\end{figure}
