RE: pid to mach task
RE: pid to mach task
- Subject: RE: pid to mach task
- From: "Mathew, Ashok" <email@hidden>
- Date: Tue, 1 Nov 2005 11:09:49 -0800
- Thread-topic: pid to mach task
Thanks for the responsed but nope, I am not doing it for the current
process.
Actually let me put the question in a different way :
I want to get the IOMememoryDescriptor of a memory allocated by
another process of whose pid & vm offset I know. The IOMemoryDescriptor
is used to get the physical address of this memory.
So, is there another way to get the physical address... ?
Thanks,
-Ashok
> -----Original Message-----
> From: Mike Smith [mailto:email@hidden]
> Sent: Tuesday, November 01, 2005 11:02 AM
> To: Mathew, Ashok
> Cc: email@hidden
> Subject: Re: pid to mach task
>
> Assuming that you're doing it for the current process, current_task()
> should do what you're after.
>
> If not, then ones' spider-senses start tingling, and wonder whether
> you are prepared to deal with the reference counting implications
> that go along with holding a task/pid reference...
>
> = Mike
>
> On Nov 1, 2005, at 10:38 AM, Mathew, Ashok wrote:
>
> >
> > Does anyone know, how to obtain the mach task id from the pid from
> > within a kernel extension ?
> >
> > Thanks in advance for any pointers ...
> > -Ashok
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Darwin-kernel mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> >
> > This email sent to email@hidden
> >
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden