summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/kldstat.2
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>2007-10-22 04:12:57 +0000
committerjb <jb@FreeBSD.org>2007-10-22 04:12:57 +0000
commit9dec415fef268455335c088626d24f3cd5dd26fc (patch)
treeca90169fbd250bbc580b712e8482c755895ffc8f /lib/libc/sys/kldstat.2
parent9392728ba026a7e54d585f8efec5f232146d34a2 (diff)
downloadFreeBSD-src-9dec415fef268455335c088626d24f3cd5dd26fc.zip
FreeBSD-src-9dec415fef268455335c088626d24f3cd5dd26fc.tar.gz
Add the full module path name to the kld_file_stat structure
for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
Diffstat (limited to 'lib/libc/sys/kldstat.2')
-rw-r--r--lib/libc/sys/kldstat.25
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/sys/kldstat.2 b/lib/libc/sys/kldstat.2
index 946417a..f2ca2a6 100644
--- a/lib/libc/sys/kldstat.2
+++ b/lib/libc/sys/kldstat.2
@@ -53,6 +53,7 @@ struct kld_file_stat {
int id;
caddr_t address; /* load address */
size_t size; /* size in bytes */
+ char pathname[MAXPATHLEN];
};
.Ed
.Pp
@@ -77,6 +78,10 @@ The id of the file specified in
The load address of the kld file.
.It size
The size of the file.
+.It pathname
+The full name of the file referred to by
+.Fa fileid ,
+including the path.
.El
.Sh RETURN VALUES
.Rv -std kldstat
OpenPOWER on IntegriCloud