Date: Mon, 27 Feb 2006 10:31:42 -0800 From: John-Mark Gurney <gurney_j@resnet.uoregon.edu> To: Tanmay <tanmayinamdar@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Accessing address space of a process through kld!! Message-ID: <20060227183142.GJ840@funkthat.com> In-Reply-To: <cdc1d1310602270026o6b17101et14ddf301269edc37@mail.gmail.com> References: <cdc1d1310602270026o6b17101et14ddf301269edc37@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tanmay wrote this message on Mon, Feb 27, 2006 at 13:56 +0530: > How do I access the address space ie text,data and stack of a (user > level)process whose pid I know from my kld. for eg: Suppose 'vi' is running > and I want to access its address space through my kld, then how do I do it? You look up the process with pfind(9), and then you can use uio(9) to transfer data into kernel space... Don't forget to PROC_UNLOCK the struct once you are done referencing it. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060227183142.GJ840>