Re: p_vmspace in syscall
On 7/2/07, Nicolas Cormier <n.cormier@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
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 2 之 11 篇):