summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/fs/procfs/procfs.c')
-rw-r--r--sys/fs/procfs/procfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs.c b/sys/fs/procfs/procfs.c
index e4883d4..18544d0 100644
--- a/sys/fs/procfs/procfs.c
+++ b/sys/fs/procfs/procfs.c
@@ -64,13 +64,13 @@
/*
* Filler function for proc/pid/self
*/
-static int
+int
procfs_doprocfile(PFS_FILL_ARGS)
{
char *fullpath = "unknown";
char *freepath = NULL;
- vn_fullpath(td, td->td_proc->p_textvp, &fullpath, &freepath);
+ vn_fullpath(td, p->p_textvp, &fullpath, &freepath);
sbuf_printf(sb, "%s", fullpath);
if (freepath)
free(freepath, M_TEMP);
@@ -80,7 +80,7 @@ procfs_doprocfile(PFS_FILL_ARGS)
/*
* Filler function for proc/curproc
*/
-static int
+int
procfs_docurproc(PFS_FILL_ARGS)
{
sbuf_printf(sb, "%ld", (long)td->td_proc->p_pid);
OpenPOWER on IntegriCloud