2 linker.hints file consists from the one or more records,
3 and is processed by sys/kern/kern_linker.c::linker_hints_lookup()
5 First record of file is special and determines its version:
9 All subsequent records have following format:
12 int length; /* length of following data */
16 Each record is aligned on sizeof(int) boundary. First integer of the field
17 'data' determines its type:
20 int type; /* type of data. currently MDT_* values */
23 The rest of record depends on the type.
26 uint8_t length; /* length of string */
27 char val[]; /* string itself (no terminating zero) */
30 struct data_mdt_version {
31 int type = MDT_VERSION;
32 struct string modname;
35 struct string kldname;
39 struct data_mdt_module {
40 int type = MDT_MODULE;
41 struct string modname;
42 struct string kldname;