Re: Callback function from kernel module

2012-11-07 Thread SaNtosh kuLkarni
I think you are looking for Upcall Functionality upcall functionality allows a kernel module to invoke a function in user space. It is possible to start a program in user space, and give it some command line arguments, as well as setting environment variables. ** int call_usermodehelper (char *

Re: Fwd: ifconfig / alloc_netdev

2012-11-07 Thread Kumar amit mehta
On Wed, Nov 07, 2012 at 04:47:26PM -0500, A B wrote: > Yes it did come up in 'ifconfig' with running that command 'ifconfig > up'. But I'm still not seeing any packets forwarded to that > interface. Rx/Tx counters are not incrementing. How can i troubleshoot > this problem?. > > On Mon, Nov 5, 20

Re: Fwd: ifconfig / alloc_netdev

2012-11-07 Thread A B
Yes it did come up in 'ifconfig' with running that command 'ifconfig up'. But I'm still not seeing any packets forwarded to that interface. Rx/Tx counters are not incrementing. How can i troubleshoot this problem?. On Mon, Nov 5, 2012 at 11:36 PM, Kumar amit mehta wrote: > On Mon, Nov 05, 2012 a

Re: Callback function from kernel module

2012-11-07 Thread Bernd Petrovitsch
Hi! On Sam, 2012-11-03 at 19:14 +0530, Jeshwanth Kumar N K Jeshu wrote: [...] > Can I call userspace function from kernel module ? Actually I need to > process some data in user space for every event occured in kernel module. The usual way to implement this with a character device. The userspace

Re: Callback function from kernel module

2012-11-07 Thread anish kumar
On Sat, 2012-11-03 at 21:56 +0530, jeshkumar...@gmail.com wrote: > hello Mulyadi, > > As per my design, a userspace application shall call some function in > the application for each interrupt occur in particular kernel > module. So what mechanism shall go ? As subramaniam referred kobject, > I

How to modify linklocal address of an ethernet interface

2012-11-07 Thread Murali Annamneni
Hi, I have written a sample code to modify the link-local address of an Ethernet interface. The code snippet is - while(1) { printf("\n1.Add Link Local\n2.Modify LinkLocal\n"); scanf("%d", &ch); switch(ch) { case 1: { add_linklo

Re: recvfrom a large packet

2012-11-07 Thread Bernd Petrovitsch
On Mit, 2012-11-07 at 00:09 -0500, devendra.aaru wrote: > On Tue, Nov 6, 2012 at 5:20 PM, Bernd Petrovitsch > wrote: > > On Die, 2012-11-06 at 16:08 +0200, Victor Buciuc wrote: > >> On Tue, Nov 6, 2012 at 1:35 PM, devendra.aaru > >> wrote: > >> > if i do a recvfrom (sk, buf, 1, 0, &addr, &le