Re: p_vmspace in syscall

看板FB_hackers作者時間18年前 (2007/07/03 21:42), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/11 (看更多)
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"
文章代碼(AID): #16Yb9E00 (FB_hackers)
討論串 (同標題文章)
文章代碼(AID): #16Yb9E00 (FB_hackers)