--- taha hafeez <tawushafeez@xxxxxxxxx> wrote: > > Well, I think I get you now.... > > Correct me if I am wrong... > > > data buffer > USER_SPACE ------------> KERNEL SPACE [fill data > with pid_t] > ^ | > | | > *------<----------------* > data buffer > > Why do we need to pass the data buffer to kernel ? > Does it contain any information that kernel needs ? > if not, then that step can be avoided ? no, I do not pass data buffer from user space. I pass, instead, the length of this buffer. The data buffer are retrieved from within the kernel space. thanks. Vincenzo ___________________________________ Yahoo! Messenger with Voice: chiama da PC a telefono a tariffe esclusive http://it.messenger.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/