On Wed, May 29, 2002 at 07:16:58AM +0530, Sridhar N wrote: > Hello > I need to pass a data structure from a user-space program to the kernel. > Right now, due to lack of proper knowledge, i've implemented a char device > file,and the passing data throught that. That means, parsing a file has > become the responsibility of the kernel...something that I don't want.Though > my kernel module can easily take 10 more lines of code that i've already > done, something tells me that there is a better method to do this. But one > strict requirement is that, for security purposes, only processes of a > particular executable should be able to communicate with the kernel. > Is it possible ? Sure, use a filesystem :) Or for the "old" way, an ioctl, passing a structure that you've already parsed using some userspace program. Or a sysctl (if you really want to do it the hard way...) greg k-h -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/