diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-12-08 22:34:14 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-12-08 22:34:14 +0000 |
| commit | 4aac2aa96c3f2e1fca42d793a31e7199a1e3a36c (patch) | |
| tree | 676c8b9ceebea9e5c2b9b0302820bc017f5b1acf | |
| parent | cd7377a36890e55b3469a193d4ef3585c95b321b (diff) | |
Notes
| -rw-r--r-- | sys/fs/procfs/procfs.c | 6 | ||||
| -rw-r--r-- | sys/fs/procfs/procfs.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/fs/procfs/procfs.c b/sys/fs/procfs/procfs.c index e4883d4567b3..18544d0002f4 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); diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h index 059cab8a27b9..bf5b75641d02 100644 --- a/sys/fs/procfs/procfs.h +++ b/sys/fs/procfs/procfs.h @@ -42,9 +42,11 @@ #ifdef _KERNEL +int procfs_docurproc(PFS_FILL_ARGS); int procfs_doproccmdline(PFS_FILL_ARGS); int procfs_doprocctl(PFS_FILL_ARGS); int procfs_doprocdbregs(PFS_FILL_ARGS); +int procfs_doprocfile(PFS_FILL_ARGS); int procfs_doprocfpregs(PFS_FILL_ARGS); int procfs_doprocmap(PFS_FILL_ARGS); int procfs_doprocmem(PFS_FILL_ARGS); |
