Date: Tue, 3 Jul 2007 15:40:28 +0200 From: "Nicolas Cormier" <n.cormier@gmail.com> To: freebsd-hackers@freebsd.org Subject: Re: p_vmspace in syscall Message-ID: <c4630b800707030640s405ddfa6rc455e52bd988c42d@mail.gmail.com> In-Reply-To: <c4630b800707020954s4aa0be68t2d5f3eb864f2dda5@mail.gmail.com> References: <c4630b800707020954s4aa0be68t2d5f3eb864f2dda5@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c4630b800707030640s405ddfa6rc455e52bd988c42d>