\hypertarget{geom__ctl_8h_source}{}\doxysection{geom\+\_\+ctl.\+h}
\label{geom__ctl_8h_source}\index{geom/geom\_ctl.h@{geom/geom\_ctl.h}}
\mbox{\hyperlink{geom__ctl_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00001}00001 \textcolor{comment}{/*-\/}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00002}00002 \textcolor{comment}{ * SPDX-\/License-\/Identifier: BSD-\/3-\/Clause}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00003}00003 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00004}00004 \textcolor{comment}{ * Copyright (c) 2003 Poul-\/Henning Kamp}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00005}00005 \textcolor{comment}{ * All rights reserved.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00006}00006 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00007}00007 \textcolor{comment}{ * Redistribution and use in source and binary forms, with or without}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00008}00008 \textcolor{comment}{ * modification, are permitted provided that the following conditions}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00009}00009 \textcolor{comment}{ * are met:}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00010}00010 \textcolor{comment}{ * 1. Redistributions of source code must retain the above copyright}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00011}00011 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00012}00012 \textcolor{comment}{ * 2. Redistributions in binary form must reproduce the above copyright}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00013}00013 \textcolor{comment}{ *    notice, this list of conditions and the following disclaimer in the}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00014}00014 \textcolor{comment}{ *    documentation and/or other materials provided with the distribution.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00015}00015 \textcolor{comment}{ * 3. The names of the authors may not be used to endorse or promote}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00016}00016 \textcolor{comment}{ *    products derived from this software without specific prior written}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00017}00017 \textcolor{comment}{ *    permission.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00018}00018 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00019}00019 \textcolor{comment}{ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00020}00020 \textcolor{comment}{ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00021}00021 \textcolor{comment}{ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00022}00022 \textcolor{comment}{ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00023}00023 \textcolor{comment}{ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00024}00024 \textcolor{comment}{ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00025}00025 \textcolor{comment}{ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00026}00026 \textcolor{comment}{ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00027}00027 \textcolor{comment}{ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00028}00028 \textcolor{comment}{ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00029}00029 \textcolor{comment}{ * SUCH DAMAGE.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00030}00030 \textcolor{comment}{ *}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00031}00031 \textcolor{comment}{ * \$FreeBSD\$}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00032}00032 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00033}00033 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00034}00034 \textcolor{preprocessor}{\#ifndef \_GEOM\_GEOM\_CTL\_H\_}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00035}00035 \textcolor{preprocessor}{\#define \_GEOM\_GEOM\_CTL\_H\_}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00036}00036 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00037}00037 \textcolor{preprocessor}{\#include <sys/ioccom.h>}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00038}00038 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00039}00039 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00040}00040 \textcolor{comment}{ * Version number.  Used to check consistency between kernel and libgeom.}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00041}00041 \textcolor{comment}{ */}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00042}\mbox{\hyperlink{geom__ctl_8h_a86a9e2dcfa725dda1ffd1ebe065bc82b}{00042}} \textcolor{preprocessor}{\#define GCTL\_VERSION    2}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00043}00043 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00044}\mbox{\hyperlink{structgctl__req__arg}{00044}} \textcolor{keyword}{struct }\mbox{\hyperlink{structgctl__req__arg}{gctl\_req\_arg}} \{}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00045}\mbox{\hyperlink{structgctl__req__arg_a36d86d454995f73b8d55b9fea7c1e717}{00045}}         u\_int                           \mbox{\hyperlink{structgctl__req__arg_a36d86d454995f73b8d55b9fea7c1e717}{nlen}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00046}\mbox{\hyperlink{structgctl__req__arg_a24088807b1d983675d34eb2f0a3e9b5d}{00046}}         \textcolor{keywordtype}{char}                            *\mbox{\hyperlink{structgctl__req__arg_a24088807b1d983675d34eb2f0a3e9b5d}{name}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00047}\mbox{\hyperlink{structgctl__req__arg_a8cf251a20418bb98e35a880358e47475}{00047}}         off\_t                           \mbox{\hyperlink{structgctl__req__arg_a8cf251a20418bb98e35a880358e47475}{offset}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00048}\mbox{\hyperlink{structgctl__req__arg_a1fba9eb23df022b6d9e40394ecde0f98}{00048}}         \textcolor{keywordtype}{int}                             \mbox{\hyperlink{structgctl__req__arg_a1fba9eb23df022b6d9e40394ecde0f98}{flag}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00049}\mbox{\hyperlink{structgctl__req__arg_a276968772b300669566b157187979933}{00049}}         \textcolor{keywordtype}{int}                             \mbox{\hyperlink{structgctl__req__arg_a276968772b300669566b157187979933}{len}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00050}\mbox{\hyperlink{structgctl__req__arg_ac682069755505c4d656620a74194ac63}{00050}}         \textcolor{keywordtype}{void}                            *\mbox{\hyperlink{structgctl__req__arg_ac682069755505c4d656620a74194ac63}{value}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00051}00051         \textcolor{comment}{/* kernel only fields */}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00052}\mbox{\hyperlink{structgctl__req__arg_abb3571fa1e32c8467462d8f5918d140e}{00052}}         \textcolor{keywordtype}{void}                            *\mbox{\hyperlink{structgctl__req__arg_abb3571fa1e32c8467462d8f5918d140e}{kvalue}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00053}00053 \};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00054}00054 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00055}\mbox{\hyperlink{geom__ctl_8h_a3ef065b28535b7c0746b67be34d53717}{00055}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_RD           1       }\textcolor{comment}{/* Must match VM\_PROT\_READ */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00056}\mbox{\hyperlink{geom__ctl_8h_a70e4aace425a5f17a379fdff316f3ed8}{00056}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_WR           2       }\textcolor{comment}{/* Must match VM\_PROT\_WRITE */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00057}\mbox{\hyperlink{geom__ctl_8h_a7a89c15fa04250753786ca4a04f312ae}{00057}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_RW           (GCTL\_PARAM\_RD | GCTL\_PARAM\_WR)}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00058}\mbox{\hyperlink{geom__ctl_8h_acb76c35cc36a4cabc04cd6dd078ae7d4}{00058}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_ASCII        4}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00059}00059 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00060}00060 \textcolor{comment}{/* These are used in the kernel only */}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00061}\mbox{\hyperlink{geom__ctl_8h_a4bf2749e03d7bbc529856e2ee4d1214b}{00061}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_NAMEKERNEL   8}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00062}\mbox{\hyperlink{geom__ctl_8h_a7ecaa1526d5cb4dd349b979ba09d5377}{00062}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_VALUEKERNEL  16}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00063}\mbox{\hyperlink{geom__ctl_8h_a6eda7383c5e61c6bb2c73ce7881ecbce}{00063}} \textcolor{preprocessor}{\#define GCTL\_PARAM\_CHANGED      32}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00064}00064 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00065}\mbox{\hyperlink{structgctl__req}{00065}} \textcolor{keyword}{struct }\mbox{\hyperlink{structgctl__req}{gctl\_req}} \{}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00066}\mbox{\hyperlink{structgctl__req_af2aa57d97fc71a9aa82bf2dc4fe84b0a}{00066}}         u\_int                           \mbox{\hyperlink{structgctl__req_af2aa57d97fc71a9aa82bf2dc4fe84b0a}{version}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00067}\mbox{\hyperlink{structgctl__req_ab8ce5b4277f8ae9ee748b20373102c01}{00067}}         u\_int                           \mbox{\hyperlink{structgctl__req_ab8ce5b4277f8ae9ee748b20373102c01}{serial}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00068}\mbox{\hyperlink{structgctl__req_af2db54a119059fd5cb415f2079b19883}{00068}}         u\_int                           \mbox{\hyperlink{structgctl__req_af2db54a119059fd5cb415f2079b19883}{narg}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00069}\mbox{\hyperlink{structgctl__req_ad676b12a2b0c438728a70ac2d90522c9}{00069}}         \textcolor{keyword}{struct }\mbox{\hyperlink{structgctl__req__arg}{gctl\_req\_arg}}         *\mbox{\hyperlink{structgctl__req_ad676b12a2b0c438728a70ac2d90522c9}{arg}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00070}\mbox{\hyperlink{structgctl__req_a0febabcf1bd45c127d7f36b893b445a4}{00070}}         u\_int                           \mbox{\hyperlink{structgctl__req_a0febabcf1bd45c127d7f36b893b445a4}{lerror}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00071}\mbox{\hyperlink{structgctl__req_af47d2e093d68c075daa46bc2969fbe7b}{00071}}         \textcolor{keywordtype}{char}                            *\mbox{\hyperlink{structgctl__req_af47d2e093d68c075daa46bc2969fbe7b}{error}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00072}\mbox{\hyperlink{structgctl__req_af0ba5009d069e1ce3a701134dfd295a2}{00072}}         \textcolor{keyword}{struct }gctl\_req\_table           *\mbox{\hyperlink{structgctl__req_af0ba5009d069e1ce3a701134dfd295a2}{reqt}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00073}00073 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00074}00074         \textcolor{comment}{/* kernel only fields */}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00075}\mbox{\hyperlink{structgctl__req_afbcd8d48705a56f13644541955e00a13}{00075}}         \textcolor{keywordtype}{int}                             \mbox{\hyperlink{structgctl__req_afbcd8d48705a56f13644541955e00a13}{nerror}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00076}\mbox{\hyperlink{structgctl__req_a51ef8a12182f47a3baf9ca1b2b6b9371}{00076}}         \textcolor{keyword}{struct }sbuf                     *\mbox{\hyperlink{structgctl__req_a51ef8a12182f47a3baf9ca1b2b6b9371}{serror}};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00077}00077 \};}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00078}00078 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00079}\mbox{\hyperlink{geom__ctl_8h_a8f066792db729957fb71482c3f377ecd}{00079}} \textcolor{preprocessor}{\#define GEOM\_CTL        \_IOW('G', GCTL\_VERSION, struct gctl\_req)}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00080}00080 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00081}\mbox{\hyperlink{geom__ctl_8h_a9269d9c03a6038d1775dcf708102a6c8}{00081}} \textcolor{preprocessor}{\#define GEOM\_CTL\_ARG\_MAX 2048   }\textcolor{comment}{/* maximum number of parameters */}\textcolor{preprocessor}{}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00083}\mbox{\hyperlink{geom__ctl_8h_aedd6e42d4acde1ad1ef047b6f2e611e5}{00083}} \textcolor{preprocessor}{\#define PATH\_GEOM\_CTL   "{}geom.ctl"{}}}
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00084}00084 }
\DoxyCodeLine{\Hypertarget{geom__ctl_8h_source_l00085}00085 \textcolor{preprocessor}{\#endif }\textcolor{comment}{/* \_GEOM\_GEOM\_CTL\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
