git: kldstat(2): Support to report module's full path

Aaron LI aly at
Tue Feb 21 06:17:24 PST 2023

commit 8d1e479a80f734880b766e2cca175592d2bdbe30
Author: Aaron LI <aly at>
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
    See also:

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(-)

DragonFly BSD source repository

More information about the Commits mailing list