Re: Accessing address space of a process through kld!!

2006-03-06 Thread Andrey Simonenko
On Fri, Mar 03, 2006 at 09:26:35PM +0530, Tanmay wrote: > On Tue, Feb 28, 2006 at 01:33:47PM -0500, > John Baldwin wrote: > >you can use the proc_rwmem() function (it takes a uio >and a struct proc) > >to do the actual I/O portion. You can see example use in >the ptrace() > >syscall. > > Thanks.T

Re: Accessing address space of a process through kld!!

2006-03-03 Thread John Baldwin
On Friday 03 March 2006 10:56, Tanmay wrote: > On Tue, Feb 28, 2006 at 01:33:47PM -0500, > John Baldwin wrote: > >you can use the proc_rwmem() function (it takes a uio >and a struct proc) > >to do the actual I/O portion. You can see example use in >the ptrace() > >syscall. > > Thanks.The memory o

Re: Accessing address space of a process through kld!!

2006-03-03 Thread Tanmay
On Tue, Feb 28, 2006 at 01:33:47PM -0500, John Baldwin wrote: >you can use the proc_rwmem() function (it takes a uio >and a struct proc) >to do the actual I/O portion. You can see example use in >the ptrace() >syscall. Thanks.The memory of the process could be read using the proc_rwmem function .

Re: Accessing address space of a process through kld!!

2006-03-02 Thread Julian Elischer
alc (Alan Cox) is ill at the moment so may not be responding. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Accessing address space of a process through kld!!

2006-03-02 Thread Andrey Simonenko
On Wed, Mar 01, 2006 at 10:54:49AM -0500, John Baldwin wrote: > > I have two questions about this function: > > > > 1. vm_fault() does not guarantee, that (possibly) faulted in page > > will be in the object or in one of backing objects when > > vm_fault() returns, because a page can bec

Re: Accessing address space of a process through kld!!

2006-03-01 Thread John Baldwin
On Wednesday 01 March 2006 09:06, Andrey Simonenko wrote: > On Tue, Feb 28, 2006 at 01:33:47PM -0500, John Baldwin wrote: > > On Monday 27 February 2006 13:31, John-Mark Gurney wrote: > > > Tanmay wrote this message on Mon, Feb 27, 2006 at 13:56 +0530: > > > > How do I access the address space ie t

Re: Accessing address space of a process through kld!!

2006-03-01 Thread Andrey Simonenko
On Tue, Feb 28, 2006 at 01:33:47PM -0500, John Baldwin wrote: > On Monday 27 February 2006 13:31, John-Mark Gurney wrote: > > 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

Re: Accessing address space of a process through kld!!

2006-02-28 Thread John Baldwin
On Monday 27 February 2006 13:31, John-Mark Gurney wrote: > 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

Re: Accessing address space of a process through kld!!

2006-02-27 Thread John-Mark Gurney
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