Re: Handling interrupts in spidev

2014-02-13 Thread Nilesh Bacchewar
you can use Asynchronous notification , FASYNC . http://www.makelinux.net/ldd3/chp-6-sect-4 Regards, Nilesh On Tue, Jan 28, 2014 at 9:47 PM, Vishwanath Govind < vishwanath.gov...@gmail.com> wrote: > You can implement irq handler in spi driver itself. SPI specific platform > data can pass it f

Re: Firmware Loading every boot?

2014-02-13 Thread Peter Teoh
FYI, the "firmware" are loaded from flash: http://en.wikipedia.org/wiki/Flash_memory which means microcontroller (or microprocessor) + DMA/DDR memory + flash are the usual makeup of an embedded system. flash are non-volatile, but normally it is slower and cannot be executed as CPU or microncont

Connecting a Device with configFS

2014-02-13 Thread Sergej Roytman
Hi! I’m not sure this is general enough for the kernel newbie list. However, it is certainly a newbie question, and I’m not sure it belongs on target-devel, being more of the “I don’t know how to do something simple” variety. Anyway, if this question belongs somewhere other than kernelnewbies

Re: How to invalidate cache in kernel driver?

2014-02-13 Thread anish singh
On Feb 13, 2014 10:29 AM, "m silverstri" wrote: > > I have an output buffer in my kernel driver. And that share with my > hardware, which uses it for output. > > When I got an interrupt, the kernel driver will copy the data from the > output buffer to user space buffer. > > How can I invalidate ca

How to invalidate cache in kernel driver?

2014-02-13 Thread m silverstri
I have an output buffer in my kernel driver. And that share with my hardware, which uses it for output. When I got an interrupt, the kernel driver will copy the data from the output buffer to user space buffer. How can I invalidate cache after my kernel driver copy the output buffer? ___

Re: [Help] How to Replace File Operations in File System?

2014-02-13 Thread freeman
Hi Rishi, Thanks for your reply! I'm sorry that the description of the problem was not clear. I am writing a module(not a filesystem) to replace some operation pointers of Ext4. Just now, I try to print the dentry->name as you said. It seems that I'm modifying the right files. I'm wonderring if

Re: [Help] How to Replace File Operations in File System?

2014-02-13 Thread freeman
Hi Abhijit and Saket, Thank you very much for your reply! I did some study on eCryptfs before. I think eCrytfs is a " big ideas for small business". Implementation of a totally new filesystem is quite complex for me to imitate and study. So with the elicitation from eCryptfs, I have this idea to

Re: [Help] How to Replace File Operations in File System?

2014-02-13 Thread Rishi Agrawal
Hi, On Thu, Feb 13, 2014 at 12:14 PM, Abhijit Chandrakant Pawar < abhi.c.pa...@gmail.com> wrote: > Hi, > > On Thursday 13 February 2014 07:40 AM, freeman wrote: > > Hi list, > > > > I am a newbie in linux kernel programming. Recently I got stuck in a > > problem when doing > > practice in file s