summaryrefslogtreecommitdiffstats
path: root/sys/fs/procfs
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-06-28 04:51:06 +0000
committerdg <dg@FreeBSD.org>1995-06-28 04:51:06 +0000
commit6c5617ad78f38f74dac5eb5e5afc64838839224d (patch)
tree81adcbfc9d2c189d9b492abd9084cdd59b8b1d9b /sys/fs/procfs
parent56e21b71f0db0cf7c494f771992731b7cf7a36b0 (diff)
downloadFreeBSD-src-6c5617ad78f38f74dac5eb5e5afc64838839224d.zip
FreeBSD-src-6c5617ad78f38f74dac5eb5e5afc64838839224d.tar.gz
Killed the "probably_never" ifdef'd code.
Diffstat (limited to 'sys/fs/procfs')
-rw-r--r--sys/fs/procfs/procfs_mem.c69
1 files changed, 1 insertions, 68 deletions
diff --git a/sys/fs/procfs/procfs_mem.c b/sys/fs/procfs/procfs_mem.c
index 0f1b3b0..ce2ed22 100644
--- a/sys/fs/procfs/procfs_mem.c
+++ b/sys/fs/procfs/procfs_mem.c
@@ -37,7 +37,7 @@
*
* @(#)procfs_mem.c 8.4 (Berkeley) 1/21/94
*
- * $Id: procfs_mem.c,v 1.6 1995/01/05 03:59:38 davidg Exp $
+ * $Id: procfs_mem.c,v 1.7 1995/05/30 08:07:09 rgrimes Exp $
*/
/*
@@ -235,70 +235,3 @@ procfs_findtextvp(p)
{
return (p->p_textvp);
}
-
-
-#ifdef probably_never
-/*
- * Given process (p), find the vnode from which
- * it's text segment is being mapped.
- *
- * (This is here, rather than in procfs_subr in order
- * to keep all the VM related code in one place.)
- */
-struct vnode *
-procfs_findtextvp(p)
- struct proc *p;
-{
- int error;
- vm_object_t object;
- vm_offset_t pageno; /* page number */
-
- /* find a vnode pager for the user address space */
-
- for (pageno = VM_MIN_ADDRESS;
- pageno < VM_MAXUSER_ADDRESS;
- pageno += PAGE_SIZE) {
- vm_map_t map;
- vm_map_entry_t out_entry;
- vm_prot_t out_prot;
- boolean_t wired, single_use;
- vm_offset_t off;
-
- map = &p->p_vmspace->vm_map;
- error = vm_map_lookup(&map, pageno,
- VM_PROT_READ,
- &out_entry, &object, &off, &out_prot,
- &wired, &single_use);
-
- if (!error) {
- vm_pager_t pager;
-
- printf("procfs: found vm object\n");
- vm_map_lookup_done(map, out_entry);
- printf("procfs: vm object = %x\n", object);
-
- /*
- * At this point, assuming no errors, object
- * is the VM object mapping UVA (pageno).
- * Ensure it has a vnode pager, then grab
- * the vnode from that pager's handle.
- */
-
- pager = object->pager;
- printf("procfs: pager = %x\n", pager);
- if (pager)
- printf("procfs: found pager, type = %d\n", pager->pg_type);
- if (pager && pager->pg_type == PG_VNODE) {
- struct vnode *vp;
-
- vp = (struct vnode *) pager->pg_handle;
- printf("procfs: vp = 0x%x\n", vp);
- return (vp);
- }
- }
- }
-
- printf("procfs: text object not found\n");
- return (0);
-}
-#endif /* probably_never */
OpenPOWER on IntegriCloud