This was partly due to some design decisions which were taken before I started on this project. The amount of data transfered between user and kernel is huge, for small amount of time now and than. Test in last month or so has proved that this method works very well. This may or may not be a good design, but this is well understood, in terms of socket communication. I am sure there are other places where kernel proper uses this method to talk to user land. Usman --- Ury Segal <ury@aduva.com> wrote: > Can you help us on the list here and explain > why do you need to have a kernel-user interface > as a UDP socket ??? > > Did you thought about a device ? using a > device-type file in /dev ? > > Using /proc ? > > Transferring data using system calls ? Maybe adding > a new one ? using ioctl ? > > Why UDP ? WHat's the special condition that compel > you to use UDP ? > > > > > "Usman S. Ansari" wrote: > > > > Hi, > > > > I am trying to use "sys_select" call from the kernel module. This call is > > implemented in file linux/fs/select.c. I can also see this function called > in > > kernel code arch/i386/kernel/sys_i386.c. > > > > When I load my module, I get unresolved symbol sys_select.I am using Redhat > 7.1 > > (2.4.2-2). Can anybody explain how I can resolve this problem. (nm of > kernel > > boot file show this symbol). > > > > Reason for using this call. > > > > My kernel module is talking to userland process over the udp socket > interface. > > All this works fine. I have defines timers, so that if user level program > is > > not running, timer expires and wait on sock_recvmsg is interrupted, (i.e. > do > > not wait for ever if user process is not running). The problem with this > > approach is that, system can be slow for whatever reason, I can receve data > > over sock_recvmsg call and before I del_timer, timer can pop and send > sigterm > > and kill my other userlevel program (which invokes kernel module via ioctl > > call, there are two userlevel programs, one does socket and other does > ioctl). > > > > Your help is appreciated. > > > > __________________________________________________ > > Terrorist Attacks on U.S. - How can you help? > > Donate cash, emergency relief information > > http://dailynews.yahoo.com/fc/US/Emergency_Information/ > > - > > Kernelnewbies: Help each other learn about the Linux kernel. > > Archive: http://mail.nl.linux.org/kernelnewbies/ > > IRC Channel: irc.openprojects.net / #kernelnewbies > > Web Page: http://www.kernelnewbies.org/ > - > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > IRC Channel: irc.openprojects.net / #kernelnewbies > Web Page: http://www.kernelnewbies.org/ ===== Usman S. Ansari UNIX OS & Device Drivers __________________________________________________ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/ - Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ IRC Channel: irc.openprojects.net / #kernelnewbies Web Page: http://www.kernelnewbies.org/