summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kldxref/fileformat
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-01-06 14:10:30 +0000
committerluigi <luigi@FreeBSD.org>2009-01-06 14:10:30 +0000
commitd71ad1411f46ae63fbed91fcf86278f6f0d4aa73 (patch)
treec7241091f254f711cf97e2d45cf1c4924b5686a0 /usr.sbin/kldxref/fileformat
parent87687bfd7cea7933b61cd479f8b5a8cdef8a71c6 (diff)
downloadFreeBSD-src-d71ad1411f46ae63fbed91fcf86278f6f0d4aa73.zip
FreeBSD-src-d71ad1411f46ae63fbed91fcf86278f6f0d4aa73.tar.gz
correct description of how a string is stored, fix a few
typos and reference the kernel file which processes this info. All in all, the content of this file should be moved to kldxref.c or to the kld(4) manpage. MFC after: 3 days
Diffstat (limited to 'usr.sbin/kldxref/fileformat')
-rw-r--r--usr.sbin/kldxref/fileformat15
1 files changed, 10 insertions, 5 deletions
diff --git a/usr.sbin/kldxref/fileformat b/usr.sbin/kldxref/fileformat
index 2eddcca..81d115c 100644
--- a/usr.sbin/kldxref/fileformat
+++ b/usr.sbin/kldxref/fileformat
@@ -1,7 +1,9 @@
$FreeBSD$
- linker.hints file consists from the one or more records. First record of
-file is special and determines its version:
+linker.hints file consists from the one or more records,
+and is processed by sys/kern/kern_linker.c::linker_hints_lookup()
+
+First record of file is special and determines its version:
int version;
@@ -16,25 +18,28 @@ struct record {
'data' determines its type:
struct data {
- int type; /* type of data. currently MTD_* values */
+ int type; /* type of data. currently MDT_* values */
};
The rest of record depends on the type.
struct string {
- int length; /* length of string */
+ uint8_t length; /* length of string */
char val[]; /* string itself (no terminating zero) */
};
struct data_mdt_version {
int type = MDT_VERSION;
struct string modname;
+ /* padding */
int version;
struct string kldname;
+ /* padding */
};
struct data_mdt_module {
- int type = MDT_VERSION;
+ int type = MDT_MODULE;
struct string modname;
struct string kldname;
+ /* padding */
};
OpenPOWER on IntegriCloud