2 .\" Copyright (c) 2001 Boris Popov
3 .\" Copyright (c) 2001 Dag-Erling Smørgrav
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .Nd generate hints for the kernel loader
41 utility is used to generate hint files which list modules, their
42 version numbers, and the files that contain them.
43 These hints are used by the kernel loader to determine where to find a
44 particular KLD module.
46 A separate hint file is generated for each directory listed on the
47 command line that contains modules.
48 If no hint records are generated for a particular directory, no hint
49 file is created, and the preexisting hint file (if there was one in
50 that directory) is removed.
53 ignores files with at least two "."s in the filename, such as
57 Note that this means that modules cannot have names such as
59 This limitation however, has been lived practice since the beginning of
60 FreeBSD's kernel modules.
62 The following options are available:
63 .Bl -tag -width indent
65 Recurse into subdirectories.
67 Do not generate a hint file, but print module metadata on standard
70 Specify a different name for the hints files than
73 Operate in verbose mode.
76 To build hint files for both standard and add-on modules:
78 .Dl "kldxref /boot/kernel /boot/modules"
80 To build hint files for all installed kernels:
82 .Dl "kldxref -R /boot"
92 utility first appeared in
98 utility was implemented by
99 .An Boris Popov Aq Mt bp@FreeBSD.org .
100 This manual page was written by
101 .An Boris Popov Aq Mt bp@FreeBSD.org
103 .An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org .