p_vmspace in syscall

Nicolas Cormier n.cormier at gmail.com
Tue Jul 3 13:40:29 UTC 2007


On 7/2/07, Nicolas Cormier <n.cormier at gmail.com> wrote:
> Hi,
> I am trying to map some data allocated in kernel to a user process
> (via a syscall).
> I need the proc's vmspace, but the value of p_vmspace of the input
> proc argument is NULL ...
> How can I get a valid vmspace ?
>
> Thanks !

Ok, syscall function passed a proc* as arguments, I don't know where
this proc* come from but it works with:
struct thread *td = curthread;
p = td->td_proc;
-- 
Nicolas Cormier


More information about the freebsd-hackers mailing list