Re: Way to monitor IP address change?...

2008-04-13 Thread Patrick McManus
> > Is there a way to monitor IP-address changes without using polling? yes - you can use netlink route sockets for that.. you setup a socket and then listen on the "RTMGRP_IPV4_IFADDR" multicast group.. the kernel will broadcast address changes on that socket for you to absorb. (v6 has its own

Re: 4kb for kernel stack - what is that?

2008-04-13 Thread Rene Herman
On 13-04-08 21:55, Robert P. J. Day wrote: (*) Per thread and a bit less in fact, since the current thread's thread_struct lives at the bottom. The option furthermore also means you get seperate interrupt stacks (also meaning that depending on usage you might even end with more generally availab

Re: 4kb for kernel stack - what is that?

2008-04-13 Thread Robert P. J. Day
regarding kernel stacks and interrupts: On Sun, 13 Apr 2008, Rene Herman wrote: > (*) Per thread and a bit less in fact, since the current thread's > thread_struct lives at the bottom. The option furthermore also means > you get seperate interrupt stacks (also meaning that depending on > usage y

Re: 4kb for kernel stack - what is that?

2008-04-13 Thread Rene Herman
On 13-04-08 18:12, Peter Teoh wrote: In "kernel hacking" when u do "make menuconfig", there is a 4kb for stack stack thing - what is that? I have that compiled and the current kernel is running with that enabled. Not even going to go into your test since only $DEITY knows what you have over

How many kernel threads will be created

2008-04-13 Thread V . Ravikumar
Hello all, Please clarify the following quetions? 1. How many kernel threads will be created for a user space process consists say 5 threads. 2. What is the differece btw linux kernel process and kernel thread. I read in linux there is no differece btw a kernel process and kernel thread And Plea

4kb for kernel stack - what is that?

2008-04-13 Thread Peter Teoh
In "kernel hacking" when u do "make menuconfig", there is a 4kb for stack stack thing - what is that? I have that compiled and the current kernel is running with that enabled. Then in my kernel module, I delcared a local variable of "char [1024*1024]" which is 1Mb local stack variable, and t

Re: kernel preemption does not work

2008-04-13 Thread Peter Teoh
On Sat, Apr 12, 2008 at 11:58 PM, Patrick McManus <[EMAIL PROTECTED]> wrote: > Hi, > > > On Sat, 2008-04-12 at 23:10 +0800, Peter Teoh wrote: > > On Sat, Apr 12, 2008 at 9:53 PM, Patrick McManus <[EMAIL PROTECTED]> wrote: > > > no. without CONFIG_PREEMPT kernel code is not pre-emptable. Userspa

Re: Way to monitor IP address change?...

2008-04-13 Thread Mulyadi Santosa
Hi On Sun, Apr 13, 2008 at 5:14 PM, Kris van Rens <[EMAIL PROTECTED]> wrote: > Hi there, > > Is there a way to monitor IP-address changes without using polling? In > other words; is there some kind of event mechanism in the Linux kernel > with which I could implement this more elegantly? > > F

Way to monitor IP address change?...

2008-04-13 Thread Kris van Rens
Hi there, Is there a way to monitor IP-address changes without using polling? In other words; is there some kind of event mechanism in the Linux kernel with which I could implement this more elegantly? >From user space I can use all kinds of scripting methods to monitor the IP-address of a certai