Re: Handling interrupts in spidev

2014-01-27 Thread Amit Mahadik
Thanks for your input. But I dont want to block the read call. Also I dont want to miss the interrupts. Regards, Amit. On Monday, 27 January 2014 12:22 PM, Richard Weinberger rich...@nod.at wrote: Am 27.01.2014 06:37, schrieb Amit Mahadik: Thanks for the reply Richard.         The

Re: Handling interrupts in spidev

2014-01-27 Thread Richard Weinberger
Am 27.01.2014 10:21, schrieb Amit Mahadik: Thanks for your input. But I dont want to block the read call. Also I dont want to miss the interrupts. Look how other drivers/programs deal with that... Thanks, //richard Regards, Amit. On Monday, 27 January 2014 12:22 PM, Richard Weinberger

Re: Where is the version.h?

2014-01-27 Thread Kristof Provost
On 2014-01-27 10:05:05 (+0800), parmenides mobile.parmeni...@gmail.com wrote: According to LDD3, the linux/module.h automatically includes the linux/version, which define some macros to help test the kernel version. But I search the source tree, and can not find version.h in include/linux.

Questions on Call single data (CSD)

2014-01-27 Thread Vignesh Radhakrishnan
Hi, I have couple of questions on Call single data (CSD) . I am going through kernel/smp.c - From what i understand CSD struct is used to run a particular function on a another core (Not sure if i am right ) ? (csd - func) ( in function smp_call_function_many) - What do these

Re: Where is the version.h?

2014-01-27 Thread Valdis . Kletnieks
On Mon, 27 Jan 2014 10:05:05 +0800, parmenides said: According to LDD3, the linux/module.h automatically includes the linux/version, which define some macros to help test the kernel version. But I search the source tree, and can not find version.h in include/linux. Where can I find it? It's

RE: make kernel driver closed

2014-01-27 Thread Jeff Haran
-Original Message- From: kernelnewbies-bounces+jharan=bytemobile@kernelnewbies.org [mailto:kernelnewbies- bounces+jharan=bytemobile@kernelnewbies.org] On Behalf Of valdis.kletni...@vt.edu Sent: Saturday, January 25, 2014 8:11 PM To: Alexandru Juncu Cc: Richard Weinberger;

Re: make kernel driver closed

2014-01-27 Thread Valdis . Kletnieks
On Mon, 27 Jan 2014 17:19:46 +, Jeff Haran said: There are lots of companies with closed source Linux drivers. My former employer Brocade Communications Systems wrote, maintained and shipped their Fiberchannel stack Linux drivers consisting of tens of thousands of lines of closed source

Re: Where is the version.h?

2014-01-27 Thread Valdis . Kletnieks
On Tue, 28 Jan 2014 02:57:51 +0800, parmenides said: Accroding to LDD3, version.h is included with the path linux/version.h, therefore I think the include/generated/uapi/linux/version.h might be symbolic linked to include/linux/version.h during compilation. Is this the

How to use memcpy in kernel driver

2014-01-27 Thread m silverstri
Hi, How can I use memcoyp in memcpy? I try #include stdio.h and string.h, but .h fails to include during compilation. Can you please help me? Thank you. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to use memcpy in kernel driver

2014-01-27 Thread Kristof Provost
On 2014-01-27 11:53:00 (-0800), m silverstri michael.j.silvers...@gmail.com wrote: How can I use memcoyp in memcpy? I try #include stdio.h and string.h, but .h fails to include during compilation. That's because stdio.h is a C library header. You can't use the C library in the kernel. You

Re: How to use memcpy in kernel driver

2014-01-27 Thread Valdis . Kletnieks
On Mon, 27 Jan 2014 11:53:00 -0800, m silverstri said: I try #include stdio.h Can you please help me? stdio is a libc invention, only used in userspace. As such, you can't call anything in a shared library from within kernel code (although there are similarly named routines for many things).

Looking to dissect kbuild

2014-01-27 Thread Eric Fowler
I have been building bespoke ucLinux kernels by way of 'make menuconfig' and running into various problems. I know I need to edit my dot-config file to set build flags but I am having to do too much tweak-and-try. I want to know more about how that file interacts with the build system. In

Re: Looking to dissect kbuild

2014-01-27 Thread Valdis . Kletnieks
On Mon, 27 Jan 2014 12:49:40 -0800, Eric Fowler said: I want to know more about how that file interacts with the build system. In particular, in situations like a build seeing a syntax error in foo.c, I want to trace from foo.c all the way up to every entry in dot-config that imports or

editing and building ./drivers/pci/iov.c

2014-01-27 Thread Kelly Zytaruk
I am trying to trace a bug I have with some hardware and I am putting printk() statements in iov.c Every time I make a change to the source file, I am building the entire linux kernel, ie 'make' from top directory. While it is not complex, it is time consuming, it takes several minutes to go

How to identify a 'fresh' page from read_cache_page?

2014-01-27 Thread Zameer Manji
Hey, My colleague Will and I are working on improving eCryptfs, an encrypted file system that ships with linux. We are trying to add a new cipher mode and we have run into a problem [1]. When the user calls `ftruncate` on a file and increases the file size, eCryptfs attempts fetch new pages for

Re: How to identify a 'fresh' page from read_cache_page?

2014-01-27 Thread Pranay Srivastava
On Jan 28, 2014 7:57 AM, Zameer Manji zma...@gmail.com wrote: Hey, My colleague Will and I are working on improving eCryptfs, an encrypted file system that ships with linux. We are trying to add a new cipher mode and we have run into a problem [1]. When the user calls `ftruncate` on a file and