On Wed, 2006-04-05 at 23:06 +0200, Vincenzo Mallozzi wrote: > --- 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. Why do you need to pass the length? If this is the length of the buffer to be retrieved then write() has a parameter for this purpose... checkout write(), It will be do everything you need!!! > 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/