diff options
Diffstat (limited to 'static/freebsd/man4/ng_hole.4 3.html')
| -rw-r--r-- | static/freebsd/man4/ng_hole.4 3.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/static/freebsd/man4/ng_hole.4 3.html b/static/freebsd/man4/ng_hole.4 3.html new file mode 100644 index 00000000..150fc6ce --- /dev/null +++ b/static/freebsd/man4/ng_hole.4 3.html @@ -0,0 +1,82 @@ +<table class="head"> + <tr> + <td class="head-ltitle">NG_HOLE(4)</td> + <td class="head-vol">Device Drivers Manual</td> + <td class="head-rtitle">NG_HOLE(4)</td> + </tr> +</table> +<div class="manual-text"> +<section class="Sh"> +<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1> +<p class="Pp"><code class="Nm">ng_hole</code> — <span class="Nd">netgraph + discard node type</span></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1> +<p class="Pp"><code class="In">#include + <<a class="In">sys/types.h</a>></code> + <br/> + <code class="In">#include + <<a class="In">netgraph/ng_hole.h</a>></code></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> +<p class="Pp">The <code class="Nm">hole</code> node type silently discards all + data and control messages it receives. This type is used for testing and + debugging.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="HOOKS"><a class="permalink" href="#HOOKS">HOOKS</a></h1> +<p class="Pp">A <code class="Nm">ng_hole</code> node accepts any request to + connect, regardless of the hook name, as long as the name is unique.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="CONTROL_MESSAGES"><a class="permalink" href="#CONTROL_MESSAGES">CONTROL + MESSAGES</a></h1> +<p class="Pp">This node type supports the generic control messages, plus the + following:</p> +<dl class="Bl-tag"> + <dt id="NGM_HOLE_GET_STATS"><a class="permalink" href="#NGM_HOLE_GET_STATS"><code class="Dv">NGM_HOLE_GET_STATS</code></a> + (<code class="Ic">getstats</code>)</dt> + <dd>This command takes an ASCII string argument, the hook name, and returns + the statistics associated with the hook as a <var class="Vt">struct + ng_hole_hookstat</var>.</dd> + <dt id="NGM_HOLE_CLR_STATS"><a class="permalink" href="#NGM_HOLE_CLR_STATS"><code class="Dv">NGM_HOLE_CLR_STATS</code></a> + (<code class="Ic">clrstats</code>)</dt> + <dd>This command takes an ASCII string argument, the hook name, and clears the + statistics associated with the hook.</dd> + <dt id="NGM_HOLE_GETCLR_STATS"><a class="permalink" href="#NGM_HOLE_GETCLR_STATS"><code class="Dv">NGM_HOLE_GETCLR_STATS</code></a> + (<code class="Ic">getclrstats</code>)</dt> + <dd>This command is identical to <code class="Dv">NGM_HOLE_GET_STATS</code>, + except that the statistics are also atomically cleared.</dd> +</dl> +</section> +<section class="Sh"> +<h1 class="Sh" id="SHUTDOWN"><a class="permalink" href="#SHUTDOWN">SHUTDOWN</a></h1> +<p class="Pp">This node shuts down upon receipt of a + <code class="Dv">NGM_SHUTDOWN</code> control message, or when all hooks have + been disconnected.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE + ALSO</a></h1> +<p class="Pp"><a class="Xr">netgraph(4)</a>, <a class="Xr">ng_echo(4)</a>, + <a class="Xr">ngctl(8)</a></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1> +<p class="Pp">The <code class="Nm">ng_hole</code> node type was implemented in + <span class="Ux">FreeBSD 4.0</span>.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> +<p class="Pp"><span class="An">Julian Elischer</span> + <<a class="Mt" href="mailto:julian@FreeBSD.org">julian@FreeBSD.org</a>></p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">May 19, 2004</td> + <td class="foot-os">FreeBSD 15.0</td> + </tr> +</table> |
