Re: p_vmspace in syscall

2007-07-04 Thread Nicolas Cormier
On 7/4/07, Steve Watt <[EMAIL PROTECTED]> wrote: In <[EMAIL PROTECTED]>, Nicolas Cormier <[EMAIL PROTECTED]> wrote: >On 7/4/07, Robert Watson <[EMAIL PROTECTED]> wrote: >> >> When operating in a system call, the 'td' argument to the system call

Re: p_vmspace in syscall

2007-07-04 Thread Nicolas Cormier
rnel memory allocator. The receive side has always been more tricky to deal with... Ok I will take a look at uipc_cow.c, Thank you -- Nicolas Cormier ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: p_vmspace in syscall

2007-07-04 Thread Nicolas Cormier
e on it later on, if there is any further interest in doing it. -- Nicolas Cormier ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: p_vmspace in syscall

2007-07-04 Thread Nicolas Cormier
On 7/4/07, Robert Watson <[EMAIL PROTECTED]> wrote: On Mon, 2 Jul 2007, Nicolas Cormier wrote: > 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

Re: p_vmspace in syscall

2007-07-03 Thread Nicolas Cormier
On 7/2/07, Nicolas Cormier <[EMAIL PROTECTED]> 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 !

p_vmspace in syscall

2007-07-02 Thread Nicolas Cormier
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 ! -- Nicolas Cormier ___ fr

Play with the VM

2007-06-26 Thread Nicolas Cormier
cific address ? Thanks in advance -- Nicolas Cormier ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: in-kernel tcp server

2007-06-21 Thread Nicolas Cormier
On 6/21/07, Andrey V. Elsukov <[EMAIL PROTECTED]> wrote: Nicolas Cormier wrote: > What's the easy way to create a basic tcp server > (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* AFAIR, OpenKETA was web server in kernel space. You can look

Re: in-kernel tcp server

2007-06-20 Thread Nicolas Cormier
socket layer (the so* functions and/or ng_ksocket) hurt performance too much. That's why I ended up bypassing them. Thanks for this precision. -- Nicolas Cormier ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listi

Re: in-kernel tcp server

2007-06-20 Thread Nicolas Cormier
On 6/20/07, John Polstra <[EMAIL PROTECTED]> wrote: Julian Elischer wrote: > Nicolas Cormier wrote: >> Hi, >> >> I'm trying to write a little tcp-server kernel module (like tftp). >> I didn't find a lot of documents about the kernel network progra

in-kernel tcp server

2007-06-18 Thread Nicolas Cormier
ate a basic tcp server (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* ? Thanks in advance ! PS: the whole job must be done in the kernel. -- Nicolas Cormier ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.

Re: module for kernel

2007-05-20 Thread Nicolas Cormier
sd.org/doc/en_US.ISO8859-1/books/arch-handbook/ http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ http://ezine.daemonnews.org/27/newbus-intro.html http://ezine.daemonnews.org/200010/blueprints.html Hope it can help you. -- Nicolas Cormier _

Re: Function calling

2006-04-05 Thread Nicolas Cormier
On 4/4/06, Lutz Boehne <[EMAIL PROTECTED]> wrote: > Hi, > > > But when the program uses the libc I have more RET than call ... > > What's the good way to find function calls and return ? > > I'm doing something similar at the moment, utilizing the Branch Single > Stepping feature available in most

Function calling

2006-04-04 Thread Nicolas Cormier
Hello. I'm writing a function tracer on freebsd to know which function the process passes inside. ex: nico > cat toto.c int foo4() { } int foo3() { } int foo2() { foo3(); } int foo1() { foo2(); } int main() { foo1(); foo4(); } nico > will print: 0x80484a8 (foo1)