Re: sysfs and inotify

2009-04-13 Thread Prashant Bhole
Hi Grag, I have already tried kobject_uevent. I thought kobject_uevent will notify about the changes. But that didn't work. I think netlink is the only way to asynchronously communicate with user space. Is there any other way? On Mon, Apr 13, 2009 at 10:30 PM, Greg KH wrote: > On Mon, Apr 13, 20

USB Subsystem

2009-04-13 Thread Arjun Joshi
Hi All, I am new to this mailing list and to the linux kernel. So the question below might seem a little simple. Ok here goes.. I read that "struct bus_type" object is registered with the driver core when the specific subsytem is loaded in the kernel. Now in context of USB, I want to know

Re: sysfs and inotify

2009-04-13 Thread Greg KH
On Tue, Apr 14, 2009 at 10:59:12AM +0530, Prashant Bhole wrote: > Hi Grag, > I have already tried kobject_uevent. I thought kobject_uevent will notify > about the changes. But that didn't work. I think netlink is the only way to > asynchronously communicate with user space. Is there any other way?

Re: Out of memory + skbuff_head_cache

2009-04-13 Thread Ramesh
Tekale Sharad-FHJN78 wrote: Hi, I'm using linux 2.6.21.5 and our kernel is freeze. The problem I'm facing is, when I create a software bridge using *$brctl* command. and add two interfaces say, eth0.0 and eth0.1, this way... $brctl addbr br-lan $brctl addif br-lan eth0.0 $brctl addif br-l

Re: sysfs and inotify

2009-04-13 Thread Prashant Bhole
I tried dnotify. That too not working out. On Mon, Apr 13, 2009 at 10:42 PM, Mulyadi Santosa wrote: > On Mon, Apr 13, 2009 at 6:26 PM, Prashant Bhole > wrote: > > Hi, > > Can I user inotify with sysfs? > > > > I have a kernel module which has exported its attributes in sysfs. Also, > I > > have

Re: Out of memory + skbuff_head_cache

2009-04-13 Thread Mulyadi Santosa
hi... On Tue, Apr 14, 2009 at 10:07 AM, Tekale Sharad-FHJN78 wrote: > Hi, > > I'm using linux 2.6.21.5 and our kernel is freeze. > > The problem I'm facing is, when I create a software bridge using $brctl > command. and add two interfaces say, eth0.0 and eth0.1, this way... > $brctl addbr br-lan

Out of memory + skbuff_head_cache

2009-04-13 Thread Tekale Sharad-FHJN78
Hi, I'm using linux 2.6.21.5 and our kernel is freeze. The problem I'm facing is, when I create a software bridge using $brctl command. and add two interfaces say, eth0.0 and eth0.1, this way... $brctl addbr br-lan $brctl addif br-lan eth0.0 $brctl addif br-lan eth0.1 When I send traffic fr

Re: Infinite Loop in Kernel

2009-04-13 Thread Raz
Bill hello I had the same problem several years a go.I made some research about this so i might shed some light here. first, you cannot do: while(1){ foo(); } the closest thing is: while(1) do_softirq() foo() } A similar piece of code can be found at pktgen.c. Problem is that a processor mu

nfs_page flags question

2009-04-13 Thread Venkatesh Srinivas
Hi, We are currently trying to trace down an NFS fault in our environment, where we trip the BUG() at fs/nfs/write.c:252. When we trip that bug, both PG_CLEAN and PG_NEED_COMMIT are set in the nfs_page's flags. That seems bad (from their names), but I haven't been able to find a good description o

Re: sysfs and inotify

2009-04-13 Thread Greg KH
On Mon, Apr 13, 2009 at 04:56:19PM +0530, Prashant Bhole wrote: > Hi, > Can I user inotify with sysfs? No. > I have a kernel module which has exported its attributes in sysfs. Also, I > have a user space program which needs to be notified about changes in > attributes in sysfs. I tried using inot

Re: Infinite Loop in Kernel

2009-04-13 Thread Greg KH
On Mon, Apr 13, 2009 at 08:34:37AM -0700, Bill Jones wrote: > I created some code in the kernel that loops until some condition becomes > true, i.e. > while(!condition) { //do nothing} Congratulations, you just hung your kernel :) > Now, in userspace, I created a bunch of threads using pthreads,

Re: Infinite Loop in Kernel

2009-04-13 Thread Mulyadi Santosa
On Mon, Apr 13, 2009 at 10:34 PM, Bill Jones wrote: > I created some code in the kernel that loops until some condition becomes > true, i.e. > while(!condition) { //do nothing} precisely, in what context do you create such busy loop? BTW, busy loop is discouraged in any way try to change that

Re: sysfs and inotify

2009-04-13 Thread Mulyadi Santosa
On Mon, Apr 13, 2009 at 6:26 PM, Prashant Bhole wrote: > Hi, > Can I user inotify with sysfs? > > I have a kernel module which has exported its attributes in sysfs. Also, I > have a user space program which needs to be notified about changes in > attributes in sysfs. I tried using inotify but not

Re: How to make USB to work dynamically

2009-04-13 Thread Greg KH
On Sun, Apr 12, 2009 at 08:39:32AM +0530, niamathullah sharief wrote: > > Yes that i know...Is this enough for making USB to enable? Did you try it out to see if it is? If so, what problems did you run into? thanks, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe ke

Infinite Loop in Kernel

2009-04-13 Thread Bill Jones
I created some code in the kernel that loops until some condition becomes true, i.e. while(!condition) { //do nothing} Now, in userspace, I created a bunch of threads using pthreads, some of which will change that condition to be true (by making a system call that will change its value in the k

sysfs and inotify

2009-04-13 Thread Prashant Bhole
Hi, Can I user inotify with sysfs? I have a kernel module which has exported its attributes in sysfs. Also, I have a user space program which needs to be notified about changes in attributes in sysfs. I tried using inotify but not working out. Thanks -- ~p~r~a~s~h~a~n~t~

hello

2009-04-13 Thread Akshay Pujari
Hello I am a newcomer in Linux driver field.I want to learn how to develop a BSP.But most of the boards already have BSPs coming with them.Can you suggest any board on which a BSP could be developed.Your help will really come handy Its not available on net. Thanks Akshay Arwind Pujari