Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!uunet!in1.uu.net!144.212.100.12!news.mathworks.com!newsfeed.direct.ca!zdc!super.zippo.com!plnews!newsp.zippo.com!snews1 From: "John S. Dyson" <dyson@freebsd.org> Newsgroups: comp.unix.bsd.misc,comp.unix.misc,comp.unix.programmer,comp.unix.sys5.misc,comp.unix.sys5.r4 Subject: Re: Getting the virtual address mappings for a process in BSD Date: Wed, 02 Jul 1997 14:27:37 -0500 Organization: John S. Dyson's home machine Lines: 22 Message-ID: <33BAABA9.41C67EA6@freebsd.org> References: <33B8C705.7F36@sqf.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 3.0-CURRENT i386) Xref: euryale.cc.adfa.oz.au comp.unix.bsd.misc:3633 comp.unix.misc:30273 comp.unix.programmer:56613 comp.unix.sys5.misc:1245 comp.unix.sys5.r4:11859 David Scott wrote: > > I have some System V.4 code which prints out the mappings in a > process's virtual address space (where they start, their size etc). > We are using this for a workaround to an ObjectStore OODB bug! > To do this it uses the /proc directory structure and the PIOCMAP > request flag to ioctl, which is System V specific. There's a good > description of this functionality on > http://www.cityu.edu.hk/Unix-man/proc.4.html > > Is there a way of achieving the same thing in BSD ? Unfortunately > there's no mention of the PIOCMAP ioctl request in Richard Stevens' > book. > On FreeBSD there is a file under /proc that supplies the mapping info in text form. /proc/<pid>/map John dyson@freebsd.org