]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/kldxref/fileformat
This commit was generated by cvs2svn to compensate for changes in r177572,
[FreeBSD/FreeBSD.git] / usr.sbin / kldxref / fileformat
1 $FreeBSD$
2
3     linker.hints file consists from the one or more records. First record of
4 file is special and determines its version:
5
6 int     version;
7
8     All subsequent records have following format:
9     
10 struct record {
11         int     length;         /* length of following data */
12         char    data[length];
13 };
14
15     Each record is aligned on sizeof(int) boundary. First integer of the field
16 'data' determines its type:
17
18 struct data {
19         int     type;           /* type of data. currently MTD_* values */
20 };
21
22     The rest of record depends on the type.
23
24 struct string {
25         int     length;         /* length of string */
26         char    val[];          /* string itself (no terminating zero) */
27 };
28
29 struct data_mdt_version {
30         int     type = MDT_VERSION;
31         struct string   modname;
32         int     version;
33         struct string   kldname;
34 };
35
36 struct data_mdt_module {
37         int     type = MDT_VERSION;
38         struct string   modname;
39         struct string   kldname;
40 };