small kldstat(2) man page adjustment

Alexander Best arundel at freebsd.org
Thu Sep 29 20:09:58 UTC 2011


hi there,

any thoughts regarding this change? personally i think it makes things a bit
easier to comprehend.

cheers.
alex
-------------- next part --------------
diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2
index 7a48296..6340c11 100644
--- a/lib/libc/sys/kldstat.2
+++ b/lib/libc/sys/kldstat.2
@@ -47,7 +47,7 @@ into
 .Fa stat .
 .Bd -literal
 struct kld_file_stat {
-	int         version;        /* set to sizeof(linker_file_stat) */
+	int         version;
 	char        name[MAXPATHLEN];
 	int         refs;
 	int         id;
@@ -58,10 +58,11 @@ struct kld_file_stat {
 .Ed
 .Bl -tag -width XXXaddress
 .It version
-This field is set to the size of the structure mentioned above by the code
-calling
-.Fn kldstat ,
-and not
+This field needs to be set to
+.Fn sizeof "linker_file_stat"
+by the code calling
+.Fn kldstat .
+It will not be set by
 .Fn kldstat
 itself.
 .It name
@@ -76,11 +77,10 @@ The id of the file specified in
 .It address
 The load address of the kld file.
 .It size
-The amount of memory in bytes allocated by the file.
+The amount of memory in bytes allocated by the kld file.
 .It pathname
-The full name of the file referred to by
-.Fa fileid ,
-including the path.
+The full pathname of the file referred to by
+.Fa fileid .
 .El
 .Sh RETURN VALUES
 .Rv -std kldstat


More information about the freebsd-doc mailing list