git: kldstat(2): Support to report module's full path
Aaron LI
aly at crater.dragonflybsd.org
Tue Feb 21 06:17:24 PST 2023
commit 8d1e479a80f734880b766e2cca175592d2bdbe30
Author: Aaron LI <aly at aaronly.me>
Date: Fri Feb 10 23:24:00 2023 +0800
kldstat(2): Support to report module's full path
Add 'pathname' field to 'kld_file_stat' and 'linker_file' structs,
enable the kldstat(2) syscall to report the full path of modules.
This also allows kldstat(8) to print the full path of loaded modules,
which may be helpful in debugging.
Bump __DragonFly_version due to syscall interface change.
Obtained-from: FreeBSD (revision 172862, commit
1676805c186f5dea36d331a982480d7d9693b126)
See also: https://lists.dragonflybsd.org/pipermail/users/2023-January/428489.html
Summary of changes:
lib/libc/sys/kldstat.2 | 9 ++++++---
sys/kern/kern_linker.c | 37 +++++++++++++++++++++++++------------
sys/sys/linker.h | 4 +++-
sys/sys/param.h | 3 ++-
4 files changed, 36 insertions(+), 17 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8d1e479a80f734880b766e2cca175592d2bdbe30
--
DragonFly BSD source repository
More information about the Commits
mailing list