freebsd-dev/usr.sbin/kldxref
Konstantin Belousov d7751071bc kldxref: do not error out if specified path is not directory, for -d mode
kldxref(8) is the only tool that can dump FreeBSD kernel module
metadata, with the -d option. But the command line requirements for that
are inconvenient, since parser requires that argv[1] is a directory
containing whole set of modules to generate xref file.

For -d, allow argv[0] to be a regular file, now it is possible to do e.g.
   $ kldxref -d /boot/kernel/ufs.ko
to see only ufs.ko metadata.

Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D30368
2021-05-20 22:40:01 +03:00
..
ef_aarch64.c
ef_amd64.c
ef_i386.c
ef_mips.c
ef_nop.c
ef_obj.c
ef_powerpc.c
ef_riscv.c
ef.c
ef.h
fileformat
kldxref.8
kldxref.c
Makefile
Makefile.depend