Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > 1e2724962c0c4eea8e642603f77e9431 > files > 60

util-vserver-devel-0.30.215+svn2847-143596525.fc12.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>util-vserver (libvserver): vserver.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.0 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>vserver.h</h1><a href="vserver_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* $Id: vserver.h 2819 2008-10-31 15:41:04Z dhozac $</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">*  Copyright (C) 2003 Enrico Scholz &lt;enrico.scholz@informatik.tu-chemnitz.de&gt;</span>
<a name="l00004"></a>00004 <span class="comment">*   </span>
<a name="l00005"></a>00005 <span class="comment">*  This program is free software; you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">*  it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment">*  the Free Software Foundation; either version 2, or (at your option)</span>
<a name="l00008"></a>00008 <span class="comment">*  any later version.</span>
<a name="l00009"></a>00009 <span class="comment">*   </span>
<a name="l00010"></a>00010 <span class="comment">*  This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">*  but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">*  GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment">*   </span>
<a name="l00015"></a>00015 <span class="comment">*  You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment">*  along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment">*  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef H_VSERVER_SYSCALL_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#define H_VSERVER_SYSCALL_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;sched.h&gt;</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include &lt;netinet/in.h&gt;</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="preprocessor">#ifndef IS_DOXYGEN</span>
<a name="l00035"></a>00035 <span class="preprocessor"></span><span class="preprocessor">#if defined(__GNUC__)</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_UNUSED                __attribute__((__unused__))</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_NORETURN              __attribute__((__noreturn__))</span>
<a name="l00038"></a>00038 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_CONST                 __attribute__((__const__))</span>
<a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_DEPRECATED            __attribute__((__deprecated__))</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#  if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ &gt;= 0x30300</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_NONNULL(ARGS)       __attribute__((__nonnull__ ARGS))</span>
<a name="l00042"></a>00042 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_ALWAYSINLINE        __attribute__((__always_inline__))</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_NONNULL(ARGS)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_ALWAYSINLINE</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00047"></a>00047 <span class="preprocessor"></span><span class="preprocessor">#  if __GNUC__*0x10000 + __GNUC_MINOR__*0x100 + __GNUC_PATCHLEVEL__ &gt;= 0x30303</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_PURE                __attribute__((__pure__))</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#  else</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span><span class="preprocessor">#    define VC_ATTR_PURE</span>
<a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#  endif</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00053"></a>00053 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_NONNULL(ARGS)</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_UNUSED</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_NORETURN</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_ALWAYSINLINE</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_DEPRECATED</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_PURE</span>
<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#  define VC_ATTR_CONST</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#endif  // IS_DOXYGEN</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00064"></a><a class="code" href="vserver_8h.html#a6dcb38e3198d4abbb8b46a9258b36e68">00064</a> <span class="preprocessor">#define VC_NOCTX                ((xid_t)(-1))</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define VC_NOXID                ((xid_t)(-1))</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span>
<a name="l00067"></a><a class="code" href="vserver_8h.html#a1bedb907c492ab32f942f8b03b6effcd">00067</a> <span class="preprocessor">#define VC_DYNAMIC_XID          ((xid_t)(-1))</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00069"></a><a class="code" href="vserver_8h.html#a9862df0fdc704fe243d92a2903f37fff">00069</a> <span class="preprocessor">#define VC_SAMECTX              ((xid_t)(-2))</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00071"></a>00071 <span class="preprocessor">#define VC_NONID                ((nid_t)(-1))</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span><span class="preprocessor">#define VC_DYNAMIC_NID          ((nid_t)(-1))</span>
<a name="l00073"></a>00073 <span class="preprocessor"></span>
<a name="l00074"></a>00074 <span class="preprocessor">#define VC_LIM_INFINITY         (~0ULL)</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span><span class="preprocessor">#define VC_LIM_KEEP             (~1ULL)</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00077"></a>00077 <span class="preprocessor">#define VC_CDLIM_UNSET          (0U)</span>
<a name="l00078"></a>00078 <span class="preprocessor"></span><span class="preprocessor">#define VC_CDLIM_INFINITY       (~0U)</span>
<a name="l00079"></a>00079 <span class="preprocessor"></span><span class="preprocessor">#define VC_CDLIM_KEEP           (~1U)</span>
<a name="l00080"></a>00080 <span class="preprocessor"></span>  
<a name="l00081"></a>00081 <span class="preprocessor">#ifndef S_CTX_INFO_LOCK</span>
<a name="l00082"></a>00082 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_LOCK       1</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00084"></a>00084 <span class="preprocessor"></span>
<a name="l00085"></a>00085 <span class="preprocessor">#ifndef S_CTX_INFO_SCHED</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_SCHED      2</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00088"></a>00088 <span class="preprocessor"></span>
<a name="l00089"></a>00089 <span class="preprocessor">#ifndef S_CTX_INFO_NPROC</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_NPROC      4</span>
<a name="l00091"></a>00091 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span>
<a name="l00093"></a>00093 <span class="preprocessor">#ifndef S_CTX_INFO_PRIVATE</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_PRIVATE    8</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span>
<a name="l00097"></a>00097 <span class="preprocessor">#ifndef S_CTX_INFO_INIT</span>
<a name="l00098"></a>00098 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_INIT       16</span>
<a name="l00099"></a>00099 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00100"></a>00100 <span class="preprocessor"></span>
<a name="l00101"></a>00101 <span class="preprocessor">#ifndef S_CTX_INFO_HIDEINFO</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_HIDEINFO   32</span>
<a name="l00103"></a>00103 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a>00105 <span class="preprocessor">#ifndef S_CTX_INFO_ULIMIT</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_ULIMIT     64</span>
<a name="l00107"></a>00107 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00108"></a>00108 <span class="preprocessor"></span>
<a name="l00109"></a>00109 <span class="preprocessor">#ifndef S_CTX_INFO_NAMESPACE</span>
<a name="l00110"></a>00110 <span class="preprocessor"></span><span class="preprocessor">#  define S_CTX_INFO_NAMESPACE  128</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00113"></a>00113 <span class="preprocessor">#define VC_CAP_CHOWN                     0</span>
<a name="l00114"></a>00114 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_DAC_OVERRIDE              1</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_DAC_READ_SEARCH           2</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_FOWNER                    3</span>
<a name="l00117"></a>00117 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_FSETID                    4</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_KILL                      5</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SETGID                    6</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SETUID                    7</span>
<a name="l00121"></a>00121 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SETPCAP                   8</span>
<a name="l00122"></a>00122 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_LINUX_IMMUTABLE           9</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_NET_BIND_SERVICE         10</span>
<a name="l00124"></a>00124 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_NET_BROADCAST            11</span>
<a name="l00125"></a>00125 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_NET_ADMIN                12</span>
<a name="l00126"></a>00126 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_NET_RAW                  13</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_IPC_LOCK                 14</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_IPC_OWNER                15</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_MODULE               16</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_RAWIO                17</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_CHROOT               18</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_PTRACE               19</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_PACCT                20</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_ADMIN                21</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_BOOT                 22</span>
<a name="l00136"></a>00136 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_NICE                 23</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_RESOURCE             24</span>
<a name="l00138"></a>00138 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_TIME                 25</span>
<a name="l00139"></a>00139 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SYS_TTY_CONFIG           26</span>
<a name="l00140"></a>00140 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_MKNOD                    27</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_LEASE                    28</span>
<a name="l00142"></a>00142 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_AUDIT_WRITE              29</span>
<a name="l00143"></a>00143 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_AUDIT_CONTROL            30</span>
<a name="l00144"></a>00144 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_SETFCAP                  31</span>
<a name="l00145"></a>00145 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_MAC_OVERRIDE             32</span>
<a name="l00146"></a>00146 <span class="preprocessor"></span><span class="preprocessor">#define VC_CAP_MAC_ADMIN                33</span>
<a name="l00147"></a>00147 <span class="preprocessor"></span>
<a name="l00148"></a>00148 <span class="preprocessor">#define VC_IMMUTABLE_FILE_FL            0x0000010lu</span>
<a name="l00149"></a>00149 <span class="preprocessor"></span><span class="preprocessor">#define VC_IMMUTABLE_LINK_FL            0x0008000lu</span>
<a name="l00150"></a>00150 <span class="preprocessor"></span><span class="preprocessor">#define VC_IMMUTABLE_ALL                (VC_IMMUTABLE_LINK_FL|VC_IMMUTABLE_FILE_FL)</span>
<a name="l00151"></a>00151 <span class="preprocessor"></span>
<a name="l00152"></a>00152 <span class="preprocessor">#define VC_IATTR_XID                    0x01000000u</span>
<a name="l00153"></a>00153 <span class="preprocessor"></span>
<a name="l00154"></a>00154 <span class="preprocessor">#define VC_IATTR_ADMIN                  0x00000001u</span>
<a name="l00155"></a>00155 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_WATCH                  0x00000002u</span>
<a name="l00156"></a>00156 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_HIDE                   0x00000004u</span>
<a name="l00157"></a>00157 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_WRITE                  0x00000008u</span>
<a name="l00158"></a>00158 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_FLAGS                  0x0000000fu</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span>
<a name="l00160"></a>00160 <span class="preprocessor">#define VC_IATTR_BARRIER                0x00010000u</span>
<a name="l00161"></a>00161 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_IUNLINK                0x00020000u</span>
<a name="l00162"></a>00162 <span class="preprocessor"></span><span class="preprocessor">#define VC_IATTR_IMMUTABLE              0x00040000u</span>
<a name="l00163"></a>00163 <span class="preprocessor"></span>
<a name="l00164"></a>00164 
<a name="l00165"></a>00165 <span class="comment">// the flags</span>
<a name="l00166"></a>00166 <span class="preprocessor">#define VC_VXF_INFO_LOCK                0x00000001ull</span>
<a name="l00167"></a>00167 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_INFO_NPROC               0x00000004ull</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_INFO_PRIVATE             0x00000008ull</span>
<a name="l00169"></a>00169 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_INFO_INIT                0x00000010ull</span>
<a name="l00170"></a>00170 <span class="preprocessor"></span>
<a name="l00171"></a>00171 <span class="preprocessor">#define VC_VXF_INFO_HIDEINFO            0x00000020ull</span>
<a name="l00172"></a>00172 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_INFO_ULIMIT              0x00000040ull</span>
<a name="l00173"></a>00173 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_INFO_NAMESPACE           0x00000080ull</span>
<a name="l00174"></a>00174 <span class="preprocessor"></span>
<a name="l00175"></a>00175 <span class="preprocessor">#define VC_VXF_SCHED_HARD               0x00000100ull</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_SCHED_PRIO               0x00000200ull</span>
<a name="l00177"></a>00177 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_SCHED_PAUSE              0x00000400ull</span>
<a name="l00178"></a>00178 <span class="preprocessor"></span>
<a name="l00179"></a>00179 <span class="preprocessor">#define VC_VXF_VIRT_MEM                 0x00010000ull</span>
<a name="l00180"></a>00180 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_VIRT_UPTIME              0x00020000ull</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_VIRT_CPU                 0x00040000ull</span>
<a name="l00182"></a>00182 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_VIRT_LOAD                0x00080000ull</span>
<a name="l00183"></a>00183 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_VIRT_TIME                0x00100000ull</span>
<a name="l00184"></a>00184 <span class="preprocessor"></span>
<a name="l00185"></a>00185 <span class="preprocessor">#define VC_VXF_HIDE_MOUNT               0x01000000ull</span>
<a name="l00186"></a>00186 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_HIDE_NETIF               0x02000000ull</span>
<a name="l00187"></a>00187 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_HIDE_VINFO               0x04000000ull</span>
<a name="l00188"></a>00188 <span class="preprocessor"></span>
<a name="l00189"></a>00189 <span class="preprocessor">#define VC_VXF_STATE_SETUP              (1ULL&lt;&lt;32)</span>
<a name="l00190"></a>00190 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_STATE_INIT               (1ULL&lt;&lt;33)</span>
<a name="l00191"></a>00191 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_STATE_ADMIN              (1ULL&lt;&lt;34)</span>
<a name="l00192"></a>00192 <span class="preprocessor"></span>
<a name="l00193"></a>00193 <span class="preprocessor">#define VC_VXF_SC_HELPER                (1ULL&lt;&lt;36)</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_REBOOT_KILL              (1ULL&lt;&lt;37)</span>
<a name="l00195"></a>00195 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_PERSISTENT               (1ULL&lt;&lt;38)</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span>
<a name="l00197"></a>00197 <span class="preprocessor">#define VC_VXF_FORK_RSS                 (1ULL&lt;&lt;48)</span>
<a name="l00198"></a>00198 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_PROLIFIC                 (1ULL&lt;&lt;49)</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
<a name="l00200"></a>00200 <span class="preprocessor">#define VC_VXF_IGNEG_NICE               (1ULL&lt;&lt;52)</span>
<a name="l00201"></a>00201 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXF_IGNEG_IONICE             (1ULL&lt;&lt;53)</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span>
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 <span class="comment">// the ccapabilities</span>
<a name="l00205"></a>00205 <span class="preprocessor">#define VC_VXC_SET_UTSNAME              0x00000001ull</span>
<a name="l00206"></a>00206 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_SET_RLIMIT               0x00000002ull</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span>
<a name="l00208"></a>00208 <span class="preprocessor">#define VC_VXC_RAW_ICMP                 0x00000100ull</span>
<a name="l00209"></a>00209 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_SYSLOG                   0x00001000ull</span>
<a name="l00210"></a>00210 <span class="preprocessor"></span>
<a name="l00211"></a>00211 <span class="preprocessor">#define VC_VXC_SECURE_MOUNT             0x00010000ull</span>
<a name="l00212"></a>00212 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_SECURE_REMOUNT           0x00020000ull</span>
<a name="l00213"></a>00213 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_BINARY_MOUNT             0x00040000ull</span>
<a name="l00214"></a>00214 <span class="preprocessor"></span>
<a name="l00215"></a>00215 <span class="preprocessor">#define VC_VXC_QUOTA_CTL                0x00100000ull</span>
<a name="l00216"></a>00216 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_ADMIN_MAPPER             0x00200000ull</span>
<a name="l00217"></a>00217 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXC_ADMIN_CLOOP              0x00400000ull</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span>
<a name="l00219"></a>00219 <span class="preprocessor">#define VC_VXC_KTHREAD                  0x01000000ull</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span>
<a name="l00221"></a>00221 
<a name="l00222"></a>00222 <span class="comment">// the scheduler flags</span>
<a name="l00223"></a>00223 <span class="preprocessor">#define VC_VXSM_FILL_RATE               0x0001</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_INTERVAL                0x0002</span>
<a name="l00225"></a>00225 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_FILL_RATE2              0x0004</span>
<a name="l00226"></a>00226 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_INTERVAL2               0x0008</span>
<a name="l00227"></a>00227 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_TOKENS                  0x0010</span>
<a name="l00228"></a>00228 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_TOKENS_MIN              0x0020</span>
<a name="l00229"></a>00229 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_TOKENS_MAX              0x0040</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_PRIO_BIAS               0x0100</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_CPU_ID                  0x1000</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_BUCKET_ID               0x2000</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span>
<a name="l00234"></a>00234 <span class="preprocessor">#define VC_VXSM_IDLE_TIME               0x0200</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_FORCE                   0x0400</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXSM_MSEC                    0x4000</span>
<a name="l00237"></a>00237 <span class="preprocessor"></span>
<a name="l00238"></a>00238 <span class="preprocessor">#define VC_VXSM_V3_MASK                 0x0173</span>
<a name="l00239"></a>00239 <span class="preprocessor"></span>
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 <span class="comment">// the network flags</span>
<a name="l00242"></a>00242 <span class="preprocessor">#define VC_NXF_INFO_LOCK                0x00000001ull</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_INFO_PRIVATE             0x00000008ull</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span>
<a name="l00245"></a>00245 <span class="preprocessor">#define VC_NXF_SINGLE_IP                0x00000100ull</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_LBACK_REMAP              0x00000200ull</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_LBACK_ALLOW              0x00000400ull</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>
<a name="l00249"></a>00249 <span class="preprocessor">#define VC_NXF_HIDE_NETIF               0x02000000ull</span>
<a name="l00250"></a>00250 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_HIDE_LBACK               0x04000000ull</span>
<a name="l00251"></a>00251 <span class="preprocessor"></span>
<a name="l00252"></a>00252 <span class="preprocessor">#define VC_NXF_STATE_SETUP              (1ULL&lt;&lt;32)</span>
<a name="l00253"></a>00253 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_STATE_ADMIN              (1ULL&lt;&lt;34)</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span>
<a name="l00255"></a>00255 <span class="preprocessor">#define VC_NXF_SC_HELPER                (1ULL&lt;&lt;36)</span>
<a name="l00256"></a>00256 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXF_PERSISTENT               (1ULL&lt;&lt;38)</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span>
<a name="l00258"></a>00258 
<a name="l00259"></a>00259 <span class="comment">// the network capabilities</span>
<a name="l00260"></a>00260 <span class="preprocessor">#define VC_NXC_TUN_CREATE               0x00000001ull</span>
<a name="l00261"></a>00261 <span class="preprocessor"></span>
<a name="l00262"></a>00262 <span class="preprocessor">#define VC_NXC_RAW_ICMP                 0x00000100ull</span>
<a name="l00263"></a>00263 <span class="preprocessor"></span>
<a name="l00264"></a>00264 
<a name="l00265"></a>00265 <span class="comment">// the vserver specific limits</span>
<a name="l00266"></a>00266 <span class="preprocessor">#define VC_VLIMIT_NSOCK                 16</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_OPENFD                17</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_ANON                  18</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_SHMEM                 19</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_SEMARY                20</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_NSEMS                 21</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_DENTRY                22</span>
<a name="l00273"></a>00273 <span class="preprocessor"></span><span class="preprocessor">#define VC_VLIMIT_MAPPED                23</span>
<a name="l00274"></a>00274 <span class="preprocessor"></span>
<a name="l00275"></a>00275 
<a name="l00276"></a>00276 <span class="comment">// the VCI bit values</span>
<a name="l00277"></a>00277 <span class="preprocessor">#define VC_VCI_NO_DYNAMIC               (1 &lt;&lt; 0)</span>
<a name="l00278"></a>00278 <span class="preprocessor"></span><span class="preprocessor">#define VC_VCI_SPACES                   (1 &lt;&lt; 10)</span>
<a name="l00279"></a>00279 <span class="preprocessor"></span><span class="preprocessor">#define VC_VCI_NETV2                    (1 &lt;&lt; 11)</span>
<a name="l00280"></a>00280 <span class="preprocessor"></span><span class="preprocessor">#define VC_VCI_PPTAG                    (1 &lt;&lt; 28)</span>
<a name="l00281"></a>00281 <span class="preprocessor"></span>
<a name="l00282"></a>00282 
<a name="l00283"></a>00283 <span class="comment">// the device mapping flags</span>
<a name="l00284"></a>00284 <span class="preprocessor">#define VC_DATTR_CREATE                 0x00000001</span>
<a name="l00285"></a>00285 <span class="preprocessor"></span><span class="preprocessor">#define VC_DATTR_OPEN                   0x00000002</span>
<a name="l00286"></a>00286 <span class="preprocessor"></span>
<a name="l00287"></a>00287 <span class="preprocessor">#define VC_DATTR_REMAP                  0x00000010</span>
<a name="l00288"></a>00288 <span class="preprocessor"></span>
<a name="l00289"></a>00289 
<a name="l00290"></a>00290 <span class="comment">// the process context migration flags</span>
<a name="l00291"></a>00291 <span class="preprocessor">#define VC_VXM_SET_INIT                 0x00000001</span>
<a name="l00292"></a>00292 <span class="preprocessor"></span><span class="preprocessor">#define VC_VXM_SET_REAPER               0x00000002</span>
<a name="l00293"></a>00293 <span class="preprocessor"></span>
<a name="l00294"></a>00294 
<a name="l00295"></a>00295 <span class="comment">// the network address flags</span>
<a name="l00296"></a>00296 <span class="preprocessor">#define VC_NXA_TYPE_IPV4                0x0001</span>
<a name="l00297"></a>00297 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXA_TYPE_IPV6                0x0002</span>
<a name="l00298"></a>00298 <span class="preprocessor"></span>
<a name="l00299"></a>00299 <span class="preprocessor">#define VC_NXA_TYPE_NONE                0x0000</span>
<a name="l00300"></a>00300 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXA_TYPE_ANY                 0x00FF</span>
<a name="l00301"></a>00301 <span class="preprocessor"></span>
<a name="l00302"></a>00302 <span class="preprocessor">#define VC_NXA_TYPE_ADDR                0x0010</span>
<a name="l00303"></a>00303 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXA_TYPE_MASK                0x0020</span>
<a name="l00304"></a>00304 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXA_TYPE_RANGE               0x0040</span>
<a name="l00305"></a>00305 <span class="preprocessor"></span>
<a name="l00306"></a>00306 <span class="preprocessor">#define VC_NXA_MOD_BCAST                0x0100</span>
<a name="l00307"></a>00307 <span class="preprocessor"></span><span class="preprocessor">#define VC_NXA_MOD_LBACK                0x0200</span>
<a name="l00308"></a>00308 <span class="preprocessor"></span>
<a name="l00309"></a>00309 
<a name="l00310"></a>00310 <span class="preprocessor">#ifndef CLONE_NEWNS</span>
<a name="l00311"></a>00311 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWNS                   0x00020000</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00313"></a>00313 <span class="preprocessor"></span><span class="preprocessor">#ifndef CLONE_NEWUTS</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWUTS                  0x04000000</span>
<a name="l00315"></a>00315 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00316"></a>00316 <span class="preprocessor"></span><span class="preprocessor">#ifndef CLONE_NEWIPC</span>
<a name="l00317"></a>00317 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWIPC                  0x08000000</span>
<a name="l00318"></a>00318 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00319"></a>00319 <span class="preprocessor"></span><span class="preprocessor">#ifndef CLONE_NEWUSER</span>
<a name="l00320"></a>00320 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWUSER                 0x10000000</span>
<a name="l00321"></a>00321 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00322"></a>00322 <span class="preprocessor"></span><span class="preprocessor">#ifndef CLONE_NEWPID</span>
<a name="l00323"></a>00323 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWPID                  0x20000000</span>
<a name="l00324"></a>00324 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00325"></a>00325 <span class="preprocessor"></span><span class="preprocessor">#ifndef CLONE_NEWNET</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span><span class="preprocessor">#  define CLONE_NEWNET                  0x40000000</span>
<a name="l00327"></a>00327 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00328"></a>00328 <span class="preprocessor"></span>
<a name="l00329"></a>00329 
<a name="l00330"></a>00330 <span class="preprocessor">#define VC_BAD_PERSONALITY              ((uint_least32_t)(-1))</span>
<a name="l00331"></a>00331 <span class="preprocessor"></span>
<a name="l00332"></a>00332 
<a name="l00342"></a>00342 <span class="preprocessor">#ifdef IS_DOXYGEN</span>
<a name="l00343"></a><a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">00343</a> <span class="preprocessor"></span><span class="keyword">typedef</span> an_unsigned_integer_type        <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>;
<a name="l00344"></a>00344 <span class="keyword">typedef</span> an_unsigned_integer_type        nid_t;
<a name="l00345"></a>00345 <span class="keyword">typedef</span> an_unsigned_integer_type        tag_t;
<a name="l00346"></a>00346 <span class="preprocessor">#endif</span>
<a name="l00347"></a>00347 <span class="preprocessor"></span>
<a name="l00348"></a>00348 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00349"></a>00349 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {
<a name="l00350"></a>00350 <span class="preprocessor">#endif</span>
<a name="l00351"></a>00351 <span class="preprocessor"></span>
<a name="l00364"></a>00364   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#ga363272d33d716c4bea57127c9b6f4d35" title="The generic vserver syscallThis function executes the generic vserver syscall. It...">vc_syscall</a>(uint32_t cmd, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keywordtype">void</span> *data);
<a name="l00365"></a>00365 
<a name="l00370"></a>00370   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#ga1dedd9c37a14feda4eb3f04f0d29bc60" title="Returns the version of the current kernel API.">vc_get_version</a>();
<a name="l00371"></a>00371 
<a name="l00372"></a>00372   <span class="keyword">typedef</span>       uint64_t vc_vci_t;
<a name="l00377"></a>00377   vc_vci_t      <a class="code" href="group__syscalls.html#ga17d8ea85db471ef45d5a47ac8bc3b1aa" title="Returns the kernel configuration bits.">vc_get_vci</a>();
<a name="l00378"></a>00378 
<a name="l00396"></a>00396   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="group__syscalls.html#ga933197ab561356f2b6dbbee785feff8d" title="Moves current process into a contextPuts current process into context ctx, removes...">vc_new_s_context</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> ctx, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> remove_cap, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> flags);
<a name="l00397"></a>00397 
<a name="l00398"></a><a class="code" href="structvc__ip__mask__pair.html">00398</a>   <span class="keyword">struct </span><a class="code" href="structvc__ip__mask__pair.html">vc_ip_mask_pair</a> {
<a name="l00399"></a>00399       uint32_t  ip;
<a name="l00400"></a>00400       uint32_t  mask;
<a name="l00401"></a>00401   };
<a name="l00402"></a>00402 
<a name="l00406"></a>00406   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gad95cdca3b7f9e7a25f023ec1e2da1805" title="Sets the ipv4root information.">vc_set_ipv4root</a>(uint32_t  bcast, <span class="keywordtype">size_t</span> nb,
<a name="l00407"></a>00407                         <span class="keyword">struct</span> <a class="code" href="structvc__ip__mask__pair.html">vc_ip_mask_pair</a> <span class="keyword">const</span> *ips) VC_ATTR_NONNULL((3));
<a name="l00408"></a>00408 
<a name="l00415"></a>00415   <span class="keywordtype">size_t</span>        <a class="code" href="group__helper.html#ga149e0447f068d7db45a8b2dba571e1e1" title="Returns the value of NB_IPV4ROOT.This function returns the value of NB_IPV4ROOT which...">vc_get_nb_ipv4root</a>() VC_ATTR_CONST VC_ATTR_PURE;
<a name="l00416"></a>00416 
<a name="l00417"></a>00417     <span class="comment">/* process context */</span>
<a name="l00420"></a><a class="code" href="structvc__ctx__flags.html">00420</a>   struct  <a class="code" href="structvc__ctx__flags.html" title="Flags of process-contexts.">vc_ctx_flags</a> {
<a name="l00422"></a><a class="code" href="structvc__ctx__flags.html#a2c32375ea2070ad6c3d7b7dbbe3b7a6e">00422</a>       uint_least64_t    flagword;
<a name="l00426"></a><a class="code" href="structvc__ctx__flags.html#a934a5ea5ceefd4f32670b36ce38baa7f">00426</a>       uint_least64_t    mask;
<a name="l00427"></a>00427   };
<a name="l00428"></a>00428 
<a name="l00440"></a>00440   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="group__syscalls.html#ga9166a915923f984ce708e8a45a3331eb" title="Creates a context without starting it.This functions initializes a new context. When...">vc_ctx_create</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__ctx__flags.html" title="Flags of process-contexts.">vc_ctx_flags</a> *flags);
<a name="l00441"></a>00441 
<a name="l00448"></a>00448   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gaab913ae205a5a2e9c2c4e5d77eb79789" title="Moves the current process into the specified context.">vc_ctx_migrate</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, uint_least64_t flags);
<a name="l00449"></a>00449 
<a name="l00451"></a><a class="code" href="structvc__ctx__stat.html">00451</a>   <span class="keyword">struct </span><a class="code" href="structvc__ctx__stat.html" title="Statistics about a context.">vc_ctx_stat</a> {
<a name="l00452"></a><a class="code" href="structvc__ctx__stat.html#acc32fc66bd5c2d64ebc8e0e475da71ef">00452</a>       uint_least32_t    <a class="code" href="structvc__ctx__stat.html#acc32fc66bd5c2d64ebc8e0e475da71ef" title="number of uses">usecnt</a>; 
<a name="l00453"></a><a class="code" href="structvc__ctx__stat.html#a756184af758caa85d9a2de96670b9cba">00453</a>       uint_least32_t    <a class="code" href="structvc__ctx__stat.html#a756184af758caa85d9a2de96670b9cba" title="number of tasks">tasks</a>;  
<a name="l00454"></a>00454   };
<a name="l00455"></a>00455 
<a name="l00463"></a>00463   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gad43bf1cc6583921a02c03015ed9bb348" title="Get some statistics about a context.">vc_ctx_stat</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__ctx__stat.html" title="Statistics about a context.">vc_ctx_stat</a> <span class="comment">/*@out@*/</span> *stat) VC_ATTR_NONNULL((2));
<a name="l00464"></a>00464 
<a name="l00466"></a><a class="code" href="structvc__virt__stat.html">00466</a>   <span class="keyword">struct </span><a class="code" href="structvc__virt__stat.html" title="Contains further statistics about a context.">vc_virt_stat</a> {
<a name="l00467"></a>00467       uint_least64_t    offset;
<a name="l00468"></a>00468       uint_least64_t    uptime;
<a name="l00469"></a>00469       uint_least32_t    nr_threads;
<a name="l00470"></a>00470       uint_least32_t    nr_running;
<a name="l00471"></a>00471       uint_least32_t    nr_uninterruptible;
<a name="l00472"></a>00472       uint_least32_t    nr_onhold;
<a name="l00473"></a>00473       uint_least32_t    nr_forks;
<a name="l00474"></a>00474       uint_least32_t    load[3];
<a name="l00475"></a>00475   };
<a name="l00476"></a>00476 
<a name="l00484"></a>00484   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gaeef76baa362192d4e103aeaac148e735" title="Get more statistics about a context.">vc_virt_stat</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__virt__stat.html" title="Contains further statistics about a context.">vc_virt_stat</a> <span class="comment">/*@out@*/</span> *stat) VC_ATTR_NONNULL((2));
<a name="l00485"></a>00485 
<a name="l00492"></a>00492   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gaca2c20d2e6485b04cab4e1a40af3a72c" title="Sends a signal to a context/pidSpecial values for pid are:-1 which means every process...">vc_ctx_kill</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> ctx, pid_t pid, <span class="keywordtype">int</span> sig);
<a name="l00493"></a>00493  
<a name="l00494"></a>00494   <span class="keywordtype">int</span>           vc_get_cflags(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__ctx__flags.html" title="Flags of process-contexts.">vc_ctx_flags</a> <span class="comment">/*@out@*/</span> *)       VC_ATTR_NONNULL((2));
<a name="l00495"></a>00495   <span class="keywordtype">int</span>           vc_set_cflags(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, struct <a class="code" href="structvc__ctx__flags.html" title="Flags of process-contexts.">vc_ctx_flags</a> <span class="comment">/*@in@*/</span> const *)  VC_ATTR_NONNULL((2));
<a name="l00496"></a>00496 
<a name="l00498"></a><a class="code" href="structvc__ctx__caps.html">00498</a>   struct  <a class="code" href="structvc__ctx__caps.html" title="Capabilities of process-contexts.">vc_ctx_caps</a> {
<a name="l00500"></a><a class="code" href="structvc__ctx__caps.html#a3fe5e25d706ac4b4984f8d243cc1bf93">00500</a>       uint_least64_t    bcaps;
<a name="l00504"></a><a class="code" href="structvc__ctx__caps.html#acb62ebe88bdcb913084657d580425421">00504</a>       uint_least64_t    bmask;
<a name="l00506"></a><a class="code" href="structvc__ctx__caps.html#adfadfb03c13ccc71c416292263b85dc9">00506</a>       uint_least64_t    ccaps;
<a name="l00510"></a><a class="code" href="structvc__ctx__caps.html#a4c72d84cdfc55c584ffd18333497ea55">00510</a>       uint_least64_t    cmask;
<a name="l00511"></a>00511   };
<a name="l00512"></a>00512 
<a name="l00513"></a>00513   <span class="keywordtype">int</span>           vc_get_ccaps(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__ctx__caps.html" title="Capabilities of process-contexts.">vc_ctx_caps</a> *);
<a name="l00514"></a>00514   <span class="keywordtype">int</span>           vc_set_ccaps(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__ctx__caps.html" title="Capabilities of process-contexts.">vc_ctx_caps</a> <span class="keyword">const</span> *);
<a name="l00515"></a>00515 
<a name="l00516"></a><a class="code" href="structvc__vx__info.html">00516</a>   <span class="keyword">struct </span><a class="code" href="structvc__vx__info.html">vc_vx_info</a> {
<a name="l00517"></a>00517       <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>     xid;
<a name="l00518"></a>00518       pid_t     initpid;
<a name="l00519"></a>00519   };
<a name="l00520"></a>00520 
<a name="l00521"></a>00521   <span class="keywordtype">int</span>           vc_get_vx_info(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__vx__info.html">vc_vx_info</a> *info) VC_ATTR_NONNULL((2));
<a name="l00522"></a>00522   
<a name="l00530"></a>00530   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="group__syscalls.html#ga2c9c68b714c4864287c9f6986573ae59" title="Returns the context of the given process.">vc_get_task_xid</a>(pid_t pid);
<a name="l00531"></a>00531 
<a name="l00535"></a>00535   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#ga837ce8bbb06ac2457c3125696ea08899" title="Waits for the end of a context.">vc_wait_exit</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid);
<a name="l00536"></a>00536   
<a name="l00537"></a>00537     <span class="comment">/* rlimit related functions */</span>
<a name="l00538"></a>00538   
<a name="l00548"></a><a class="code" href="vserver_8h.html#a66d303232685b6d8714633059cfabc75">00548</a>   <span class="keyword">typedef</span> uint_least64_t        <a class="code" href="vserver_8h.html#a66d303232685b6d8714633059cfabc75" title="The type which is used for a single limit value.">vc_limit_t</a>;
<a name="l00549"></a>00549 
<a name="l00551"></a><a class="code" href="structvc__rlimit__mask.html">00551</a>   <span class="keyword">struct  </span><a class="code" href="structvc__rlimit__mask.html" title="Masks describing the supported limits.">vc_rlimit_mask</a> {
<a name="l00552"></a><a class="code" href="structvc__rlimit__mask.html#a9553122a93ba890f06a5e39b30803475">00552</a>       uint_least32_t    <a class="code" href="structvc__rlimit__mask.html#a9553122a93ba890f06a5e39b30803475" title="masks the resources supporting a minimum limit">min</a>;    
<a name="l00553"></a><a class="code" href="structvc__rlimit__mask.html#a4a0584a7168e4e72de19a8f09e67f241">00553</a>       uint_least32_t    <a class="code" href="structvc__rlimit__mask.html#a4a0584a7168e4e72de19a8f09e67f241" title="masks the resources supporting a soft limit">soft</a>;   
<a name="l00554"></a><a class="code" href="structvc__rlimit__mask.html#a2b9af78fa690368a8667d11d2cc37d0b">00554</a>       uint_least32_t    <a class="code" href="structvc__rlimit__mask.html#a2b9af78fa690368a8667d11d2cc37d0b" title="masks the resources supporting a hard limit">hard</a>;   
<a name="l00555"></a>00555   };
<a name="l00556"></a>00556 
<a name="l00558"></a>00558   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#a7c8d4be3456de7e1b6078265555197a0" title="Returns the limits supported by the kernel.">vc_get_rlimit_mask</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00559"></a>00559                            <span class="keyword">struct</span> <a class="code" href="structvc__rlimit__mask.html" title="Masks describing the supported limits.">vc_rlimit_mask</a> <span class="comment">/*@out@*/</span> *lim) VC_ATTR_NONNULL((2));
<a name="l00560"></a>00560 
<a name="l00564"></a><a class="code" href="structvc__rlimit.html">00564</a>   <span class="keyword">struct </span><a class="code" href="structvc__rlimit.html" title="The limits of a resources.">vc_rlimit</a> {
<a name="l00565"></a><a class="code" href="structvc__rlimit.html#a98f5b37862262ceb1f57195a09074712">00565</a>       vc_limit_t        <a class="code" href="structvc__rlimit.html#a98f5b37862262ceb1f57195a09074712" title="the guaranted minimum of a resources">min</a>;    
<a name="l00566"></a><a class="code" href="structvc__rlimit.html#ad166d4ff045ef6ee58b8744308a41f26">00566</a>       vc_limit_t        <a class="code" href="structvc__rlimit.html#ad166d4ff045ef6ee58b8744308a41f26" title="the softlimit of a resource">soft</a>;   
<a name="l00567"></a><a class="code" href="structvc__rlimit.html#a52f2b3770fd4e5bf64858c408c501b91">00567</a>       vc_limit_t        <a class="code" href="structvc__rlimit.html#a52f2b3770fd4e5bf64858c408c501b91" title="the absolute hardlimit of a resource">hard</a>;   
<a name="l00568"></a>00568   };
<a name="l00569"></a>00569 
<a name="l00578"></a>00578   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gaebc11477d165e8f4b4183aff7019721b" title="Returns the limits of resource.">vc_get_rlimit</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keywordtype">int</span> resource,
<a name="l00579"></a>00579                       <span class="keyword">struct</span> <a class="code" href="structvc__rlimit.html" title="The limits of a resources.">vc_rlimit</a>       <span class="comment">/*@out@*/</span> *lim) VC_ATTR_NONNULL((3));
<a name="l00588"></a>00588   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#ga156a4d7f47464de28e0344577361bf46" title="Sets the limits of resource.">vc_set_rlimit</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keywordtype">int</span> resource,
<a name="l00589"></a>00589                       <span class="keyword">struct</span> <a class="code" href="structvc__rlimit.html" title="The limits of a resources.">vc_rlimit</a> <span class="keyword">const</span> <span class="comment">/*@in@*/</span>  *lim) VC_ATTR_NONNULL((3));
<a name="l00590"></a>00590 
<a name="l00592"></a><a class="code" href="structvc__rlimit__stat.html">00592</a>   <span class="keyword">struct  </span><a class="code" href="structvc__rlimit__stat.html" title="Statistics for a resource limit.">vc_rlimit_stat</a> {
<a name="l00593"></a><a class="code" href="structvc__rlimit__stat.html#abec413de1ccf9b9a90b3e355d40a9e29">00593</a>       uint_least32_t    <a class="code" href="structvc__rlimit__stat.html#abec413de1ccf9b9a90b3e355d40a9e29" title="number of hits on the limit">hits</a>;    
<a name="l00594"></a><a class="code" href="structvc__rlimit__stat.html#afd31d12a6ab81ff8b268b3b63cd64198">00594</a>       vc_limit_t        <a class="code" href="structvc__rlimit__stat.html#afd31d12a6ab81ff8b268b3b63cd64198" title="current value">value</a>;   
<a name="l00595"></a><a class="code" href="structvc__rlimit__stat.html#a9e9b7057085eb735ef21e266f1d873c2">00595</a>       vc_limit_t        <a class="code" href="structvc__rlimit__stat.html#a9e9b7057085eb735ef21e266f1d873c2" title="minimum value observed">minimum</a>; 
<a name="l00596"></a><a class="code" href="structvc__rlimit__stat.html#a5db34dcdc1e382589d916d8b4028f446">00596</a>       vc_limit_t        <a class="code" href="structvc__rlimit__stat.html#a5db34dcdc1e382589d916d8b4028f446" title="maximum value observed">maximum</a>; 
<a name="l00597"></a>00597   };
<a name="l00598"></a>00598 
<a name="l00607"></a>00607   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gabec23f855f1b2feff9c69d88458ad1e4" title="Returns the current stats of resource.">vc_rlimit_stat</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keywordtype">int</span> resource,
<a name="l00608"></a>00608                        <span class="keyword">struct</span> <a class="code" href="structvc__rlimit__stat.html" title="Statistics for a resource limit.">vc_rlimit_stat</a> <span class="comment">/*@out@*/</span> *stat) VC_ATTR_NONNULL((3));
<a name="l00609"></a>00609 
<a name="l00616"></a>00616   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#gaa7d81b266eda87b5b4260289b3959e29" title="Resets the minimum and maximum observed values of all resources.">vc_reset_minmax</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid);
<a name="l00617"></a>00617 
<a name="l00637"></a>00637   <span class="keywordtype">bool</span>          <a class="code" href="group__helper.html#ga5f6ba0153739c8f698d9139863b68822" title="Parses a string describing a limitThis function parses str and interprets special...">vc_parseLimit</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> <span class="comment">/*@in@*/</span> *str, vc_limit_t <span class="comment">/*@out@*/</span> *res)      VC_ATTR_NONNULL((1,2));
<a name="l00638"></a>00638 
<a name="l00639"></a>00639 
<a name="l00640"></a>00640     <span class="comment">/* network context */</span>
<a name="l00641"></a><a class="code" href="structvc__nx__info.html">00641</a>   <span class="keyword">struct </span><a class="code" href="structvc__nx__info.html">vc_nx_info</a> {
<a name="l00642"></a>00642       nid_t     nid;
<a name="l00643"></a>00643   };
<a name="l00644"></a>00644 
<a name="l00645"></a>00645   nid_t         vc_get_task_nid(pid_t pid);
<a name="l00646"></a>00646   <span class="keywordtype">int</span>           vc_get_nx_info(nid_t nid, <span class="keyword">struct</span> <a class="code" href="structvc__nx__info.html">vc_nx_info</a> *) VC_ATTR_NONNULL((2));
<a name="l00647"></a>00647 
<a name="l00648"></a><a class="code" href="structvc__net__addr.html">00648</a>   struct <a class="code" href="structvc__net__addr.html">vc_net_addr</a> {
<a name="l00649"></a>00649       uint16_t                  vna_type;
<a name="l00650"></a>00650       uint16_t                  vna_flags;
<a name="l00651"></a>00651       uint16_t                  vna_prefix;
<a name="l00652"></a>00652       uint16_t                  vna_parent;
<a name="l00653"></a>00653       <span class="keyword">struct </span>{
<a name="l00654"></a>00654         <span class="keyword">union </span>{
<a name="l00655"></a>00655           <span class="keyword">struct </span>in_addr        v4;
<a name="l00656"></a>00656           <span class="keyword">struct </span>in6_addr       v6;
<a name="l00657"></a>00657         } ip;
<a name="l00658"></a>00658         <span class="keyword">union </span>{
<a name="l00659"></a>00659           <span class="keyword">struct </span>in_addr        v4;
<a name="l00660"></a>00660           <span class="keyword">struct </span>in6_addr       v6;
<a name="l00661"></a>00661         } ip2;
<a name="l00662"></a>00662         <span class="keyword">union </span>{
<a name="l00663"></a>00663           <span class="keyword">struct </span>in_addr        v4;
<a name="l00664"></a>00664           <span class="keyword">struct </span>in6_addr       v6;
<a name="l00665"></a>00665         } mask;
<a name="l00666"></a>00666       } s;
<a name="l00667"></a>00667 <span class="preprocessor">#define vna_v4_ip       s.ip.v4</span>
<a name="l00668"></a>00668 <span class="preprocessor"></span><span class="preprocessor">#define vna_v4_ip2      s.ip2.v4</span>
<a name="l00669"></a>00669 <span class="preprocessor"></span><span class="preprocessor">#define vna_v4_mask     s.mask.v4</span>
<a name="l00670"></a>00670 <span class="preprocessor"></span><span class="preprocessor">#define vna_v6_ip       s.ip.v6</span>
<a name="l00671"></a>00671 <span class="preprocessor"></span><span class="preprocessor">#define vna_v6_ip2      s.ip2.v6</span>
<a name="l00672"></a>00672 <span class="preprocessor"></span><span class="preprocessor">#define vna_v6_mask     s.mask.v6</span>
<a name="l00673"></a>00673 <span class="preprocessor"></span>  };
<a name="l00674"></a>00674 
<a name="l00675"></a><a class="code" href="structvc__net__flags.html">00675</a>   <span class="keyword">struct </span><a class="code" href="structvc__net__flags.html">vc_net_flags</a> {
<a name="l00676"></a>00676       uint_least64_t    flagword;
<a name="l00677"></a>00677       uint_least64_t    mask;
<a name="l00678"></a>00678   };
<a name="l00679"></a>00679 
<a name="l00680"></a>00680   nid_t         vc_net_create(nid_t nid);
<a name="l00681"></a>00681   <span class="keywordtype">int</span>           vc_net_migrate(nid_t nid);
<a name="l00682"></a>00682 
<a name="l00683"></a>00683   <span class="keywordtype">int</span>           vc_net_add(nid_t nid, <span class="keyword">struct</span> <a class="code" href="structvc__net__addr.html">vc_net_addr</a> <span class="keyword">const</span> *info);
<a name="l00684"></a>00684   <span class="keywordtype">int</span>           vc_net_remove(nid_t nid, <span class="keyword">struct</span> <a class="code" href="structvc__net__addr.html">vc_net_addr</a> <span class="keyword">const</span> *info);
<a name="l00685"></a>00685 
<a name="l00686"></a>00686   <span class="keywordtype">int</span>           vc_get_nflags(nid_t, <span class="keyword">struct</span> <a class="code" href="structvc__net__flags.html">vc_net_flags</a> *);
<a name="l00687"></a>00687   <span class="keywordtype">int</span>           vc_set_nflags(nid_t, <span class="keyword">struct</span> <a class="code" href="structvc__net__flags.html">vc_net_flags</a> <span class="keyword">const</span> *);
<a name="l00688"></a>00688 
<a name="l00689"></a><a class="code" href="structvc__net__caps.html">00689</a>   <span class="keyword">struct </span><a class="code" href="structvc__net__caps.html">vc_net_caps</a> {
<a name="l00690"></a>00690       uint_least64_t    ncaps;
<a name="l00691"></a>00691       uint_least64_t    cmask;
<a name="l00692"></a>00692   };
<a name="l00693"></a>00693 
<a name="l00694"></a>00694   <span class="keywordtype">int</span>           vc_get_ncaps(nid_t, <span class="keyword">struct</span> <a class="code" href="structvc__net__caps.html">vc_net_caps</a> *);
<a name="l00695"></a>00695   <span class="keywordtype">int</span>           vc_set_ncaps(nid_t, <span class="keyword">struct</span> <a class="code" href="structvc__net__caps.html">vc_net_caps</a> <span class="keyword">const</span> *);
<a name="l00696"></a>00696 
<a name="l00697"></a>00697 
<a name="l00698"></a>00698     <span class="comment">/* iattr related functions */</span>
<a name="l00699"></a>00699 
<a name="l00700"></a>00700   <span class="keywordtype">int</span>           vc_set_iattr(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00701"></a>00701                              uint_least32_t flags, uint_least32_t mask) VC_ATTR_NONNULL((1));
<a name="l00702"></a>00702 
<a name="l00703"></a>00703   <span class="keywordtype">int</span>           vc_fset_iattr(<span class="keywordtype">int</span> fd, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00704"></a>00704                               uint_least32_t flags, uint_least32_t mask);
<a name="l00705"></a>00705 
<a name="l00732"></a>00732   <span class="keywordtype">int</span>           <a class="code" href="group__syscalls.html#ga7cf4aa692997e33e4eb2c89685c16f69" title="Returns information about attributes and assigned context of a file.This function...">vc_get_iattr</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> * <span class="comment">/*@null@*/</span> xid,
<a name="l00733"></a>00733                              uint_least32_t * <span class="comment">/*@null@*/</span> flags,
<a name="l00734"></a>00734                              uint_least32_t * <span class="comment">/*@null@*/</span> mask) VC_ATTR_NONNULL((1));
<a name="l00735"></a>00735 
<a name="l00736"></a>00736   <span class="keywordtype">int</span>           vc_fget_iattr(<span class="keywordtype">int</span> fd, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> * <span class="comment">/*@null@*/</span> xid,
<a name="l00737"></a>00737                               uint_least32_t * <span class="comment">/*@null@*/</span> flags,
<a name="l00738"></a>00738                               uint_least32_t * <span class="comment">/*@null@*/</span> mask) VC_ATTR_NONNULL((4));
<a name="l00739"></a>00739   
<a name="l00753"></a>00753   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="group__syscalls.html#gad0a70ac732d841b8204462997d575a9b" title="Returns the context of filename This function calls vc_get_iattr() with appropriate...">vc_getfilecontext</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename) VC_ATTR_NONNULL((1));
<a name="l00754"></a>00754 
<a name="l00755"></a>00755 
<a name="l00756"></a>00756     <span class="comment">/* vhi related functions */</span>
<a name="l00757"></a>00757   <span class="keyword">typedef</span> <span class="keyword">enum</span> { vcVHI_CONTEXT, vcVHI_SYSNAME, vcVHI_NODENAME,
<a name="l00758"></a>00758                  vcVHI_RELEASE, vcVHI_VERSION, vcVHI_MACHINE,
<a name="l00759"></a>00759                  vcVHI_DOMAINNAME }             vc_uts_type;
<a name="l00760"></a>00760   
<a name="l00761"></a>00761   <span class="keywordtype">int</span>           vc_set_vhi_name(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, vc_uts_type type,
<a name="l00762"></a>00762                                 <span class="keywordtype">char</span> <span class="keyword">const</span> *val, <span class="keywordtype">size_t</span> len) VC_ATTR_NONNULL((3));
<a name="l00763"></a>00763   <span class="keywordtype">int</span>           vc_get_vhi_name(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, vc_uts_type type,
<a name="l00764"></a>00764                                 <span class="keywordtype">char</span> *val, <span class="keywordtype">size_t</span> len)       VC_ATTR_NONNULL((3));
<a name="l00765"></a>00765 
<a name="l00766"></a>00766     <span class="comment">/* namespace related functions */</span>
<a name="l00767"></a>00767   <span class="keywordtype">int</span>           vc_enter_namespace(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, uint_least64_t mask, uint32_t index);
<a name="l00768"></a>00768   <span class="keywordtype">int</span>           vc_set_namespace(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, uint_least64_t mask, uint32_t index);
<a name="l00769"></a>00769   <span class="keywordtype">int</span>           vc_cleanup_namespace(<span class="keywordtype">void</span>);
<a name="l00770"></a>00770   uint_least64_t vc_get_space_mask(<span class="keywordtype">void</span>);
<a name="l00771"></a>00771   uint_least64_t vc_get_space_default(<span class="keywordtype">void</span>);
<a name="l00772"></a>00772 
<a name="l00773"></a>00773 
<a name="l00774"></a>00774     <span class="comment">/* disk limit related things */</span>
<a name="l00775"></a><a class="code" href="structvc__ctx__dlimit.html">00775</a>   <span class="keyword">struct </span><a class="code" href="structvc__ctx__dlimit.html">vc_ctx_dlimit</a> {
<a name="l00776"></a>00776       uint_least32_t    space_used;
<a name="l00777"></a>00777       uint_least32_t    space_total;
<a name="l00778"></a>00778       uint_least32_t    inodes_used;
<a name="l00779"></a>00779       uint_least32_t    inodes_total;
<a name="l00780"></a>00780       uint_least32_t    reserved;
<a name="l00781"></a>00781   };
<a name="l00782"></a>00782   
<a name="l00783"></a>00783 
<a name="l00785"></a>00785   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#a524a85b81c77ce11a1b70a061b13638c">vc_add_dlimit</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00786"></a>00786                               uint_least32_t flags) VC_ATTR_NONNULL((1));
<a name="l00788"></a>00788   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#aa4d3c5594916b4bbfaa81c08d264fdb7">vc_rem_dlimit</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00789"></a>00789                               uint_least32_t flags) VC_ATTR_NONNULL((1));
<a name="l00790"></a>00790 
<a name="l00792"></a>00792   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#a7a3e79f0f125a9a23cfc9ffa258e65c7">vc_set_dlimit</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00793"></a>00793                               uint_least32_t flags,
<a name="l00794"></a>00794                               <span class="keyword">struct</span> <a class="code" href="structvc__ctx__dlimit.html">vc_ctx_dlimit</a> <span class="keyword">const</span> *limits) VC_ATTR_NONNULL((1,4));
<a name="l00796"></a>00796   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#ae57dabebb47f56a88f560d16a537d560">vc_get_dlimit</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid,
<a name="l00797"></a>00797                               uint_least32_t flags,
<a name="l00798"></a>00798                               <span class="keyword">struct</span> <a class="code" href="structvc__ctx__dlimit.html">vc_ctx_dlimit</a> *limits) VC_ATTR_NONNULL((1));
<a name="l00799"></a>00799 
<a name="l00801"></a>00801   tag_t         <a class="code" href="vserver_8h.html#a1105d3344b4ba9f65a4ce9ffce2efd23">vc_get_task_tag</a>(pid_t pid);
<a name="l00802"></a>00802 
<a name="l00804"></a>00804   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#ab5b95ee6e5170569ff133202203eb8e8">vc_tag_create</a>(tag_t tag);
<a name="l00805"></a>00805 
<a name="l00807"></a>00807   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#ada98022f7c1195d541913afee4830556">vc_tag_migrate</a>(tag_t tag);
<a name="l00808"></a>00808 
<a name="l00809"></a>00809     <span class="comment">/* scheduler related syscalls */</span>
<a name="l00810"></a><a class="code" href="structvc__set__sched.html">00810</a>   <span class="keyword">struct </span><a class="code" href="structvc__set__sched.html">vc_set_sched</a> {
<a name="l00811"></a>00811       uint_least32_t    set_mask;
<a name="l00812"></a>00812       int_least32_t     fill_rate;
<a name="l00813"></a>00813       int_least32_t     interval;
<a name="l00814"></a>00814       int_least32_t     fill_rate2;
<a name="l00815"></a>00815       int_least32_t     interval2;
<a name="l00816"></a>00816       int_least32_t     tokens;
<a name="l00817"></a>00817       int_least32_t     tokens_min;
<a name="l00818"></a>00818       int_least32_t     tokens_max;
<a name="l00819"></a>00819       int_least32_t     priority_bias;
<a name="l00820"></a>00820       int_least32_t     cpu_id;
<a name="l00821"></a>00821       int_least32_t     bucket_id;
<a name="l00822"></a>00822   };
<a name="l00823"></a>00823 
<a name="l00824"></a>00824   <span class="keywordtype">int</span>           <a class="code" href="structvc__set__sched.html">vc_set_sched</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__set__sched.html">vc_set_sched</a> <span class="keyword">const</span> *) VC_ATTR_NONNULL((2));
<a name="l00825"></a>00825   <span class="keywordtype">int</span>           vc_get_sched(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, struct <a class="code" href="structvc__set__sched.html">vc_set_sched</a> *) VC_ATTR_NONNULL((2));
<a name="l00826"></a>00826 
<a name="l00827"></a><a class="code" href="structvc__sched__info.html">00827</a>   struct <a class="code" href="structvc__sched__info.html">vc_sched_info</a> {
<a name="l00828"></a>00828       int_least32_t     cpu_id;
<a name="l00829"></a>00829       int_least32_t     bucket_id;
<a name="l00830"></a>00830       uint_least64_t    user_msec;
<a name="l00831"></a>00831       uint_least64_t    sys_msec;
<a name="l00832"></a>00832       uint_least64_t    hold_msec;
<a name="l00833"></a>00833       uint_least32_t    token_usec;
<a name="l00834"></a>00834       int_least32_t     vavavoom;
<a name="l00835"></a>00835   };
<a name="l00836"></a>00836 
<a name="l00837"></a>00837   <span class="keywordtype">int</span>           <a class="code" href="structvc__sched__info.html">vc_sched_info</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">struct</span> <a class="code" href="structvc__sched__info.html">vc_sched_info</a> *info) VC_ATTR_NONNULL((2));
<a name="l00838"></a>00838 
<a name="l00839"></a>00839     <span class="comment">/* misc. syscalls */</span>
<a name="l00840"></a>00840   <span class="keywordtype">int</span>           vc_set_mapping(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">const</span> <span class="keywordtype">char</span> *device, <span class="keyword">const</span> <span class="keywordtype">char</span> *target, uint32_t flags);
<a name="l00841"></a>00841   <span class="keywordtype">int</span>           vc_unset_mapping(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, <span class="keyword">const</span> <span class="keywordtype">char</span> *device, <span class="keyword">const</span> <span class="keywordtype">char</span> *target, uint32_t flags);
<a name="l00842"></a>00842 
<a name="l00843"></a>00843   <span class="keywordtype">int</span>           vc_get_badness(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, int64_t *badness);
<a name="l00844"></a>00844   <span class="keywordtype">int</span>           vc_set_badness(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid, int64_t badness);
<a name="l00845"></a>00845 
<a name="l00846"></a>00846 
<a name="l00850"></a><a class="code" href="structvc__err__listparser.html">00850</a>   <span class="keyword">struct </span><a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> {
<a name="l00851"></a><a class="code" href="structvc__err__listparser.html#a35bb113ff2194b48de38c77f223b5a6d">00851</a>       <span class="keywordtype">char</span> <span class="keyword">const</span>        *<a class="code" href="structvc__err__listparser.html#a35bb113ff2194b48de38c77f223b5a6d" title="Pointer to the first character of an erroneous string.">ptr</a>;           
<a name="l00852"></a><a class="code" href="structvc__err__listparser.html#afe624e8592cde8c00d27729e525560ea">00852</a>       <span class="keywordtype">size_t</span>            <a class="code" href="structvc__err__listparser.html#afe624e8592cde8c00d27729e525560ea" title="Length of the erroneous string.">len</a>;            
<a name="l00853"></a>00853   };
<a name="l00854"></a>00854 
<a name="l00865"></a>00865   uint_least64_t        <a class="code" href="group__helper.html#ga183222921dcd4c7bfd1ec196d563cc47" title="Converts a single string into bcapability.">vc_text2bcap</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *str, <span class="keywordtype">size_t</span> len);
<a name="l00866"></a>00866 
<a name="l00881"></a>00881   <span class="keywordtype">char</span> <span class="keyword">const</span> *  <a class="code" href="group__helper.html#ga8fd4a2af15945412f740d245c7625eb3" title="Converts the lowest bit of a bcapability or the entire value (when possible) to a...">vc_lobcap2text</a>(uint_least64_t *val) VC_ATTR_NONNULL((1));
<a name="l00882"></a>00882 
<a name="l00910"></a>00910   <span class="keywordtype">int</span>                   <a class="code" href="group__helper.html#ga5332c1edcfa6781f731a55e4f75678ae" title="Converts a string into a bcapability-bitmaskSyntax of str:.">vc_list2bcap</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *str, <span class="keywordtype">size_t</span> len,
<a name="l00911"></a>00911                                      <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err,
<a name="l00912"></a>00912                                      <span class="keyword">struct</span> <a class="code" href="structvc__ctx__caps.html" title="Capabilities of process-contexts.">vc_ctx_caps</a> *cap) VC_ATTR_NONNULL((1,4));
<a name="l00913"></a>00913 
<a name="l00914"></a>00914   uint_least64_t        vc_text2ccap(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len);
<a name="l00915"></a>00915   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_loccap2text(uint_least64_t *);
<a name="l00916"></a>00916   <span class="keywordtype">int</span>                   vc_list2ccap(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len,
<a name="l00917"></a>00917                                      <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err,
<a name="l00918"></a>00918                                      <span class="keyword">struct</span> <a class="code" href="structvc__ctx__caps.html" title="Capabilities of process-contexts.">vc_ctx_caps</a> *);
<a name="l00919"></a>00919 
<a name="l00920"></a>00920   <span class="keywordtype">int</span>                   vc_list2cflag(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len,
<a name="l00921"></a>00921                                      <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err,
<a name="l00922"></a>00922                                      <span class="keyword">struct</span> <a class="code" href="structvc__ctx__flags.html" title="Flags of process-contexts.">vc_ctx_flags</a> *flags);
<a name="l00923"></a>00923   uint_least64_t        vc_text2cflag(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len);
<a name="l00924"></a>00924   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_locflag2text(uint_least64_t *);
<a name="l00925"></a>00925   
<a name="l00926"></a>00926   uint_least32_t        vc_list2cflag_compat(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len,
<a name="l00927"></a>00927                                             <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err);
<a name="l00928"></a>00928   uint_least32_t        vc_text2cflag_compat(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len);
<a name="l00929"></a>00929   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_hicflag2text_compat(uint_least32_t);
<a name="l00930"></a>00930 
<a name="l00931"></a>00931   <span class="keywordtype">int</span>                   vc_text2cap(<span class="keywordtype">char</span> <span class="keyword">const</span> *);
<a name="l00932"></a>00932   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_cap2text(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>);
<a name="l00933"></a>00933 
<a name="l00934"></a>00934   
<a name="l00935"></a>00935   <span class="keywordtype">int</span>                   vc_list2nflag(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len,
<a name="l00936"></a>00936                                      <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err,
<a name="l00937"></a>00937                                      <span class="keyword">struct</span> <a class="code" href="structvc__net__flags.html">vc_net_flags</a> *flags);
<a name="l00938"></a>00938   uint_least64_t        vc_text2nflag(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len);
<a name="l00939"></a>00939   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_lonflag2text(uint_least64_t *);
<a name="l00940"></a>00940 
<a name="l00941"></a>00941   uint_least64_t        vc_text2ncap(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len);
<a name="l00942"></a>00942   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_loncap2text(uint_least64_t *);
<a name="l00943"></a>00943   <span class="keywordtype">int</span>                   vc_list2ncap(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">size_t</span> len,
<a name="l00944"></a>00944                                      <span class="keyword">struct</span> <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> *err,
<a name="l00945"></a>00945                                      <span class="keyword">struct</span> <a class="code" href="structvc__net__caps.html">vc_net_caps</a> *);
<a name="l00946"></a>00946 
<a name="l00947"></a>00947   uint_least64_t                vc_get_insecurebcaps() VC_ATTR_CONST;
<a name="l00948"></a>00948   inline static uint_least64_t  vc_get_insecureccaps() {
<a name="l00949"></a>00949     <span class="keywordflow">return</span> ~(VC_VXC_SET_UTSNAME|VC_VXC_RAW_ICMP);
<a name="l00950"></a>00950   }
<a name="l00951"></a>00951   
<a name="l00952"></a>00952   <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keywordtype">int</span>     vc_setfilecontext(<span class="keywordtype">char</span> <span class="keyword">const</span> *filename, <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid) {
<a name="l00953"></a>00953     <span class="keywordflow">return</span> vc_set_iattr(filename, xid, 0, VC_IATTR_XID);
<a name="l00954"></a>00954   }
<a name="l00955"></a>00955 
<a name="l00956"></a>00956 
<a name="l00957"></a>00957   uint_least32_t        vc_text2personalityflag(<span class="keywordtype">char</span> <span class="keyword">const</span> *str,
<a name="l00958"></a>00958                                                 <span class="keywordtype">size_t</span> len) VC_ATTR_NONNULL((1));
<a name="l00959"></a>00959 
<a name="l00960"></a>00960   <span class="keywordtype">char</span> <span class="keyword">const</span> *          vc_lopersonality2text(uint_least32_t *) VC_ATTR_NONNULL((1));
<a name="l00961"></a>00961   
<a name="l00962"></a>00962   <span class="keywordtype">int</span>                   vc_list2personalityflag(<span class="keywordtype">char</span> const <span class="comment">/*@in@*/</span> *,
<a name="l00963"></a>00963                                                 <span class="keywordtype">size_t</span> len,
<a name="l00964"></a>00964                                                 uint_least32_t <span class="comment">/*@out@*/</span> *personality,
<a name="l00965"></a>00965                                                 struct <a class="code" href="structvc__err__listparser.html" title="Information about parsing errors.">vc_err_listparser</a> <span class="comment">/*@out@*/</span> *err) VC_ATTR_NONNULL((1,3));
<a name="l00966"></a>00966 
<a name="l00967"></a>00967   uint_least32_t        vc_str2personalitytype(<span class="keywordtype">char</span> const <span class="comment">/*@in@*/</span>*,
<a name="l00968"></a>00968                                                <span class="keywordtype">size_t</span> len) VC_ATTR_NONNULL((1));
<a name="l00969"></a>00969 
<a name="l00970"></a>00970     
<a name="l00971"></a>00971   typedef enum { vcFEATURE_VKILL,  vcFEATURE_IATTR,   vcFEATURE_RLIMIT,
<a name="l00972"></a>00972                  vcFEATURE_COMPAT, vcFEATURE_MIGRATE, vcFEATURE_NAMESPACE,
<a name="l00973"></a>00973                  vcFEATURE_SCHED,  vcFEATURE_VINFO,   vcFEATURE_VHI,
<a name="l00974"></a>00974                  vcFEATURE_VSHELPER0, vcFEATURE_VSHELPER, vcFEATURE_VWAIT,
<a name="l00975"></a>00975                  vcFEATURE_VNET,   vcFEATURE_VSTAT,   vcFEATURE_PPTAG,
<a name="l00976"></a>00976                  vcFEATURE_PIDSPACE, vcFEATURE_SPACES, vcFEATURE_PERSISTENT,
<a name="l00977"></a>00977                  vcFEATURE_PIVOT_ROOT,
<a name="l00978"></a>00978                  }
<a name="l00979"></a>00979     vcFeatureSet;
<a name="l00980"></a>00980 
<a name="l00981"></a>00981   <span class="keywordtype">bool</span>          vc_isSupported(vcFeatureSet) VC_ATTR_CONST;
<a name="l00982"></a>00982   <span class="keywordtype">bool</span>          vc_isSupportedString(<span class="keywordtype">char</span> const *);
<a name="l00983"></a>00983 
<a name="l00984"></a>00984   
<a name="l00985"></a>00985   typedef enum { vcTYPE_INVALID, vcTYPE_MAIN, vcTYPE_WATCH,
<a name="l00986"></a>00986                  vcTYPE_STATIC, vcTYPE_DYNAMIC }
<a name="l00987"></a>00987     vcXidType;
<a name="l00988"></a>00988   
<a name="l00989"></a>00989   vcXidType     vc_getXIDType(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid) VC_ATTR_CONST;
<a name="l00990"></a>00990 
<a name="l00992"></a>00992   <span class="keywordtype">bool</span>          <a class="code" href="vserver_8h.html#a2c56d96f1d77a86138599a431c4d442d">vc_is_dynamic_xid</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> xid);
<a name="l00993"></a>00993 
<a name="l00994"></a>00994 
<a name="l00995"></a>00995   <span class="comment">/* The management part */</span>
<a name="l00996"></a>00996 
<a name="l00997"></a>00997 <span class="preprocessor">#define VC_LIMIT_VSERVER_NAME_LEN       1024</span>
<a name="l00998"></a>00998 <span class="preprocessor"></span>  
<a name="l00999"></a>00999   <span class="keyword">typedef</span> <span class="keyword">enum</span> { vcCFG_NONE, vcCFG_AUTO,
<a name="l01000"></a>01000                  vcCFG_LEGACY,
<a name="l01001"></a>01001                  vcCFG_RECENT_SHORT,
<a name="l01002"></a>01002                  vcCFG_RECENT_FULL }            vcCfgStyle;
<a name="l01003"></a>01003 
<a name="l01004"></a>01004 
<a name="l01006"></a>01006   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="vserver_8h.html#a81a3f7da6e19ce5dfb2ab8c11061f476">vc_xidopt2xid</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">bool</span> honor_static, <span class="keywordtype">char</span> <span class="keyword">const</span> **err_info);
<a name="l01008"></a>01008   nid_t         <a class="code" href="vserver_8h.html#a362b3a3e05fe349c50866dd226b46d5b">vc_nidopt2nid</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">bool</span> honor_static, <span class="keywordtype">char</span> <span class="keyword">const</span> **err_info);
<a name="l01010"></a>01010   tag_t         <a class="code" href="vserver_8h.html#a39ecac0239a343e6de781b1ba9385c32">vc_tagopt2tag</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *, <span class="keywordtype">bool</span> honor_static, <span class="keywordtype">char</span> <span class="keyword">const</span> **err_info);
<a name="l01011"></a>01011 
<a name="l01012"></a>01012   vcCfgStyle    vc_getVserverCfgStyle(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>);
<a name="l01013"></a>01013   
<a name="l01016"></a>01016   <span class="keywordtype">char</span> *        <a class="code" href="vserver_8h.html#a6191bde7e38853f775fca0629c243439">vc_getVserverName</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style);
<a name="l01017"></a>01017 
<a name="l01022"></a>01022   <span class="keywordtype">char</span> *        <a class="code" href="vserver_8h.html#ad2cba504dde68789b4140da4665c3c53">vc_getVserverCfgDir</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style);
<a name="l01023"></a>01023 
<a name="l01027"></a>01027   <span class="keywordtype">char</span> *        <a class="code" href="vserver_8h.html#a4d62373b41c2c03ef0f996b1b3fe4ff8">vc_getVserverAppDir</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style, <span class="keywordtype">char</span> <span class="keyword">const</span> *app);
<a name="l01028"></a>01028 
<a name="l01031"></a>01031   <span class="keywordtype">char</span> *        <a class="code" href="vserver_8h.html#a1e0782637b323bc038c94ba51508d188">vc_getVserverVdir</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style, <span class="keywordtype">bool</span> physical);
<a name="l01032"></a>01032 
<a name="l01033"></a>01033   <span class="keyword">typedef</span> <span class="keyword">enum</span> { vcCTX_XID = 1,
<a name="l01034"></a>01034                  vcCTX_NID,
<a name="l01035"></a>01035                  vcCTX_TAG,
<a name="l01036"></a>01036         } vcCtxType;
<a name="l01037"></a>01037 
<a name="l01045"></a>01045   <a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a>         <a class="code" href="vserver_8h.html#a35f991f2fb3607e70df25f3956522cf4">vc_getVserverCtx</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style,
<a name="l01046"></a>01046                                  <span class="keywordtype">bool</span> honor_static, <span class="keywordtype">bool</span> <span class="comment">/*@null@*/</span> *is_running,
<a name="l01047"></a>01047                                  vcCtxType type);
<a name="l01048"></a>01048 
<a name="l01053"></a>01053   <span class="keywordtype">char</span> *        <a class="code" href="vserver_8h.html#a3cfdc6ba5f8b03b4634e29c34380f711">vc_getVserverByCtx</a>(<a class="code" href="vserver_8h.html#ad5610de6ff910d4ac79675e956e89717">xid_t</a> ctx, <span class="comment">/*@null@*/</span>vcCfgStyle *style,
<a name="l01054"></a>01054                                    <span class="comment">/*@null@*/</span><span class="keywordtype">char</span> <span class="keyword">const</span> *revdir);
<a name="l01055"></a>01055 
<a name="l01056"></a>01056   <span class="keywordtype">int</span>           vc_compareVserverById(<span class="keywordtype">char</span> <span class="keyword">const</span> *lhs, vcCfgStyle lhs_style,
<a name="l01057"></a>01057                                       <span class="keywordtype">char</span> <span class="keyword">const</span> *rhs, vcCfgStyle rhs_style);
<a name="l01058"></a>01058 
<a name="l01059"></a>01059   <span class="keywordtype">void</span>          vc_exitLikeProcess(<span class="keywordtype">int</span> pid, <span class="keywordtype">int</span> ret) VC_ATTR_NORETURN;
<a name="l01060"></a>01060  
<a name="l01061"></a>01061 <span class="preprocessor">#define vcSKEL_INTERFACES       1u</span>
<a name="l01062"></a>01062 <span class="preprocessor"></span><span class="preprocessor">#define vcSKEL_PKGMGMT          2u</span>
<a name="l01063"></a>01063 <span class="preprocessor"></span><span class="preprocessor">#define vcSKEL_FILESYSTEM       4u</span>
<a name="l01064"></a>01064 <span class="preprocessor"></span>
<a name="l01067"></a>01067   <span class="keywordtype">int</span>           <a class="code" href="vserver_8h.html#af9a2f0ab5b533cac165f8fddb63f3281">vc_createSkeleton</a>(<span class="keywordtype">char</span> <span class="keyword">const</span> *<span class="keywordtype">id</span>, vcCfgStyle style, <span class="keywordtype">int</span> flags);
<a name="l01068"></a>01068 
<a name="l01069"></a>01069 
<a name="l01070"></a>01070 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l01071"></a>01071 <span class="preprocessor"></span>}
<a name="l01072"></a>01072 <span class="preprocessor">#endif</span>
<a name="l01073"></a>01073 <span class="preprocessor"></span>
<a name="l01074"></a>01074 <span class="preprocessor">#undef VC_ATTR_PURE</span>
<a name="l01075"></a>01075 <span class="preprocessor"></span><span class="preprocessor">#undef VC_ATTR_ALWAYSINLINE</span>
<a name="l01076"></a>01076 <span class="preprocessor"></span><span class="preprocessor">#undef VC_ATTR_NORETURN</span>
<a name="l01077"></a>01077 <span class="preprocessor"></span><span class="preprocessor">#undef VC_ATTR_UNUSED</span>
<a name="l01078"></a>01078 <span class="preprocessor"></span><span class="preprocessor">#undef VC_ATTR_NONNULL</span>
<a name="l01079"></a>01079 <span class="preprocessor"></span>
<a name="l01080"></a>01080 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Sun Aug 23 09:52:09 2009 for util-vserver (libvserver) by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.0 </small></address>
</body>
</html>