diff options
author | keramida <keramida@FreeBSD.org> | 2005-01-06 17:14:21 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2005-01-06 17:14:21 +0000 |
commit | 1d4742efe6c0bf7648eed24968b5936de04acf9c (patch) | |
tree | ff2111356e6659a00dd0a65cd58e302066acbb9f | |
parent | 09400f2d0928602100137d6a9042172aa76cdbe7 (diff) | |
download | FreeBSD-src-1d4742efe6c0bf7648eed24968b5936de04acf9c.zip FreeBSD-src-1d4742efe6c0bf7648eed24968b5936de04acf9c.tar.gz |
. Use a -tag instead of an -inset list, which makes the arguments of the
macro stand out more clearly.
. Various other wording fixes.
. Bump document date.
-rw-r--r-- | share/man/man9/DECLARE_GEOM_CLASS.9 | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/share/man/man9/DECLARE_GEOM_CLASS.9 b/share/man/man9/DECLARE_GEOM_CLASS.9 index 7c21587..2a9d165 100644 --- a/share/man/man9/DECLARE_GEOM_CLASS.9 +++ b/share/man/man9/DECLARE_GEOM_CLASS.9 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd January 16, 2004 +.Dd January 6, 2005 .Dt DECLARE_GEOM_CLASS 9 .Os .Sh NAME @@ -49,13 +49,13 @@ modules GEOM classes and it is the only official way for class registration. The arguments to .Fn DECLARE_GEOM_CLASS are: -.Bl -inset -offset indent +.Bl -tag -offset indent .It Fa class -is the +The .Vt g_class structure which describes a GEOM class. .It Fa mod_name -is a kernel module name (not a class name!). +A kernel module name (not a class name!). .El .Pp Structure @@ -97,13 +97,16 @@ Pointer to a function which is called for every geom on class unload. If this field is not set, the class can not be unloaded. .El .Pp -Only field +Only a .Fa name -is required, the rest is optional. +field is required; the rest are optional. .Sh RESTRICTIONS/CONDITIONS -In the +The fields of .Vt g_class -initialization one must use C99 initialization (just like in the example below). +should always be initialized using C99-style field naming +(see the initialization of +.Dv example_class +below). .Sh EXAMPLES Example class declaration. .Bd -literal -offset indent |