看板 FB_hackers 關於我們 聯絡資訊
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"