remove unused code
[freebsd-src/fkvm-freebsd.git] / usr.sbin / kldxref / fileformat
blob2eddcca4a14d93641883896d2cd55a84d047163c
1 $FreeBSD$
3     linker.hints file consists from the one or more records. First record of
4 file is special and determines its version:
6 int     version;
8     All subsequent records have following format:
9     
10 struct record {
11         int     length;         /* length of following data */
12         char    data[length];
15     Each record is aligned on sizeof(int) boundary. First integer of the field
16 'data' determines its type:
18 struct data {
19         int     type;           /* type of data. currently MTD_* values */
22     The rest of record depends on the type.
24 struct string {
25         int     length;         /* length of string */
26         char    val[];          /* string itself (no terminating zero) */
29 struct data_mdt_version {
30         int     type = MDT_VERSION;
31         struct string   modname;
32         int     version;
33         struct string   kldname;
36 struct data_mdt_module {
37         int     type = MDT_VERSION;
38         struct string   modname;
39         struct string   kldname;