Re: filter drivers in Linux

2009-01-07 Thread Ramya Desai
On Wed, Jan 7, 2009 at 12:03 PM, Greg KH g...@kroah.com wrote: On Wed, Jan 07, 2009 at 11:33:06AM +0530, Ramya Desai wrote: Can anyone suggest the possibility of writing a UASP driver in Linux as mentioned ? or any such implementation is available in any of Linux flavours? As for as I know,

Re: Copying Data Blocks

2009-01-07 Thread Manish Katiyar
On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Ok, Let me rephrase what rohit is exactly trying to question. There is an inode X which has say some N number of data blocks. Now, through his own kernel module and some changes to the file system, he wants to

Re: Writing Vlan driver

2009-01-07 Thread Anupam Kapoor
Tekale Sharad-FHJN fhj...@motorola wrote: , | I'm looking for virtual lan driver for Marvell switch(88e6060). ` iirc, Lennert Buytenhek has already added an implementation of dsa into the kernel. for doing vlan/bridging stuff, i can think of 2 possibilities : - snoop 'brctl'

sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
Hello,I would like to try to use sysfs_notify() / poll() mechanism from my driver to notify some events to my application. I'm looking for a tiny example showing the use of this mechanism. The driver side with sysfs_notify seems quite simple but I have absolutely no idea about the application

RE: Writing Vlan driver

2009-01-07 Thread Tekale Sharad-FHJN78
Hi Erik, I think you can make your life so much easier if you just used 2.8.28 and port your own changes to it. 2.6.21 is almost 2 years old, that's considered ancient and unsupported in the Linux world. I wish I could do that, But our software got freezed and we only need to add extra support

Re: Writing Vlan driver

2009-01-07 Thread Erik Mouw
On Wed, 7 Jan 2009 13:51:22 +0800 Tekale Sharad-FHJN78 fhj...@motorola.com wrote: Erik Mouw wrote: No need to write that, support for IEEE 802.1Q VLAN has been in the kernel for ages. I need to write the vlan driver for Marvell chip(88e6060), fortunately it is supported in 2.6.28 kernel,

Re: sysfs_notify poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 9:40 AM, PAtrick Gerber kpa_i...@yahoo.fr wrote: Hello, I would like to try to use sysfs_notify() / poll() mechanism from my driver to notify some events to my application. I'm looking for a tiny example showing the use of this mechanism. The driver side with

Re: Copying Data Blocks

2009-01-07 Thread Rohit Sharma
On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Ok, Let me rephrase what rohit is exactly trying to question. There is an inode X which has say some N number of data blocks. Now, through

Re: Pre-emption and kernel/softlockup.c softlockup_tick()

2009-01-07 Thread Mulyadi Santosa
Hi... On Tue, Jan 6, 2009 at 10:10 PM, Adrian Cornish adri...@cqg.com wrote: Hm,from the function's comment: /* *This callback runs from the timer interrupt, and checks * whether the watchdog thread has hung or not: */ that means,it runs in interrupt context, thus AFAIK it won't be

Re: sysfs_notify poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 2:21 PM, PAtrick Gerber kpa_i...@yahoo.fr wrote: Thanks for the information. I have tested with the example from http://linux.die.net/man/3/poll slightly modified (see the attached file). If I test pool on the /sys/module/systest/sections/.data file it seems to

Re: Writing Vlan driver

2009-01-07 Thread Peter Teoh
Looking through the implementation, it is just in net/dsa/*.c. The marvell specific file is mv88e6*.c, and the switch framework file is dsa.c, which implement the register_switch_driver() API. Question is: does this hardware switching things depends on changes in other parts of linux kernel

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
Thanks for the information. I have tested with the example from http://linux.die.net/man/3/poll slightly modified (see the attached file). If I test pool on the /sys/module/systest/sections/.data file it seems to work fine. But if I try the same test application with my attribute

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
I am not sure but I had understanded that we need to implement the pool syscall, as described in ldd3 books, only for chardevices. For attributes in sysfs, the poll syscall is managed by the kernel/sysfs and we can simply use sysfs_notify on the kernel side. An event queue is managed for each

Re: sysfs_notify poll

2009-01-07 Thread Belisko Marek
Hi, On Wed, Jan 7, 2009 at 4:20 PM, PAtrick Gerber kpa_i...@yahoo.fr wrote: I found some occurences of sysfs_notify in different driver (phidgetkit driver for example). As I sayd in my previous post now it's working. I can start poll on my attribute (sysfs file) and when I execute

Re: Copying Data Blocks

2009-01-07 Thread Greg Freemyer
On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma imreckl...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Ok, Let me rephrase what rohit is exactly trying to question.

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
So it's not an error it's normal case ! I am happy to hear that. Thanks for your help. --- En date de : Mer 7.1.09, Belisko Marek marek.beli...@gmail.com a écrit : De: Belisko Marek marek.beli...@gmail.com Objet: Re: sysfs_notify poll À: kpa_i...@yahoo.fr Cc: kernelnewbies@nl.linux.org

Re: Copying Data Blocks

2009-01-07 Thread Peter Teoh
On Wed, Jan 7, 2009 at 11:33 PM, Greg Freemyer greg.freem...@gmail.com wrote: On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma imreckl...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha

Re: sysfs_notify poll

2009-01-07 Thread PAtrick Gerber
I found some occurences of sysfs_notify in different driver (phidgetkit driver for example). As I sayd in my previous post now it's working. I can start poll on my attribute (sysfs file) and when I execute sysfs_notify in my driver the event is handled by poll. But I have still a little

Re: Copying Data Blocks

2009-01-07 Thread Manish Katiyar
On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Ok, Let me rephrase what rohit is exactly trying to question. There is an inode X which has say some N number of data blocks. Now, through

About xawtv

2009-01-07 Thread niamathullah sharief
Hello friends,   i downloaded the xawtv package...but i dont which program is used to capture the videoi found there is a program called capture.c in common directory in that package..but i didnt find any memory mapping function in that programso i am very much confused..can anyone

Re: timer interrupt

2009-01-07 Thread Microbit_Ubuntu
Hi Peter, Matthias et al, Sorry for the delay. Thanks for all your feedback so far ! I'll try to give a better description of the problem and what I think I've learnt so far : First, my small test module code has always used del_timer_sync() on exit. The SAM9260 platform is a single CPU however,

Re: timer interrupt

2009-01-07 Thread Microbit_Ubuntu
Perhaps I should also add my compile invoke (Codesourcery) : arm-none-linux-gnueabi-gcc -Wall -c -O hello_timer.c -o hello_timer -v And and an example of a segmentation fault I get on occasion : Timer module Exited Unable to handle kernel NULL pointer dereference at virtual address 0062

Re: Copying Data Blocks

2009-01-07 Thread Sandeep K Sinha
Hi Greg, Just to give you a context of the problem : refer: http://code.google.com/p/fscops/ reply inline. On Wed, Jan 7, 2009 at 9:03 PM, Greg Freemyer greg.freem...@gmail.com wrote: On Wed, Jan 7, 2009 at 5:48 AM, Rohit Sharma imreckl...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:44 PM,

Re: Copying Data Blocks

2009-01-07 Thread Sandeep K Sinha
Hey Manish, On Wed, Jan 7, 2009 at 10:29 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:44 PM, Manish Katiyar mkati...@gmail.com wrote: On Wed, Jan 7, 2009 at 12:17 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Ok, Let me rephrase what rohit is exactly trying to

Re: Disk Space

2009-01-07 Thread Sandeep K Sinha
Hi Rohit, On Sun, Jan 4, 2009 at 12:56 PM, rohit vashist rohitvashist2...@gmail.com wrote: On Sun, Jan 4, 2009 at 12:46 PM, Raseel raseelbha...@gmail.com wrote: On 04-Jan-09, at 12:27 PM, rohit vashist rohitvashist2...@gmail.com wrote: Hi Can we know the disk space of any unmounted

Re: Copying Data Blocks

2009-01-07 Thread Greg Freemyer
On Wed, Jan 7, 2009 at 11:05 PM, Sandeep K Sinha sandeepksi...@gmail.com wrote: Hi Greg, Just to give you a context of the problem : refer: http://code.google.com/p/fscops/ reply inline. On Wed, Jan 7, 2009 at 9:03 PM, Greg Freemyer greg.freem...@gmail.com wrote: On Wed, Jan 7, 2009 at

RC Script

2009-01-07 Thread abhish agarwal
Hi All, I am trying to capture all console messages at boot up in a file so for that i thought i should change my rc script but it is read only it does not let me change, please tell me a way to capture all messages. I want to follow boot up sequence and want to check any error message at boot

Re: limiting kernel memory

2009-01-07 Thread Hemanth Kumar
Hi , Thanks for suggestion's, But I was think of not using boot option's/kernel parameter is there any other method to do this, Regards, Hemanth --- On Thu, 8/1/09, Mark Brown ma...@marksmachinations.com wrote: From: Mark Brown ma...@marksmachinations.com Subject: Re:

Re: limiting kernel memory

2009-01-07 Thread Hemanth Kumar
Hello,     Thanks for the reply.  My question is as follows          I am having multicore system with  total 4GB RAM . I am running Linux on       one core and other RMIOS application on the other cores.  Since Linux is using   all 4GB total physical RAM, I  want to restrict this