Gpio interrupt shall pass the signal to application

2012-10-06 Thread jeshwanth Kumar N K
Hello All, I am writing a kernel module that shall pass the signal to application running in user space. So which signal i should use? And how to achieve this? Thank you. Sent from my HTC___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread Fabio Pozzi
I think you could use sysfs_notify to send the notification and use select() or poll() to wait for changes in the sysfs file in the interrupt handler routine. You can find an example of this in the gpio-fan driver. Hope it helps -- Saluti, Fabio Pozzi

Debug symbols in kernel modules

2012-10-06 Thread Aft nix
Hi, When i write a makefile to build a kernel module how should i make sure that it contains debugging symbols? So that when i will use gdb over serial line to debug the module, i can use add-symbol-file? -- -aft ___ Kernelnewbies mailing list

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread Fabio Pozzi
Hi Jeshwanth, I'm not an expert in kernel development, but I think that if you receive an interrupt every 50_micro_seconds IMHO you should definitely deal with it in kernel mode and maybe also think about enabling Real Time to be more certain about kernel latencies and scheduling. The context

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread devendra.aaru
On Sat, Oct 6, 2012 at 4:20 AM, jeshwanth Kumar N K jeshkumar...@gmail.com wrote: Hello All, I am writing a kernel module that shall pass the signal to application running in user space. So which signal i should use? And how to achieve this? Thank you. if any interrupt comes wake up a

scsi adapter module over block device - need help

2012-10-06 Thread Dmitry Filippov
Hi all, i'm just learning kernel and not experienced in writing code for it. I'm going to write kernel module in studying purposes and i hope someone from you could help me with it and in best case guide me through overall process. I want to write module that implements SCSI-disk logic, keeping

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread Jonathan Neuschäfer
On Sat, Oct 06, 2012 at 01:50:55PM +0530, jeshwanth Kumar N K wrote: Hello All, I am writing a kernel module that shall pass the signal to application running in user space. So which signal i should use? And how to achieve this? Thank you. What kind of information need to be transmitted

Re: enabling config_wireless_ext

2012-10-06 Thread Jorgyano Vieira
Hi, On Fri, Oct 05, 2012 at 07:04:31PM +0100, captain wrote: Sorry Confused. I'm building from the latest 3.6 kernel from git in order to be able to submit patches. Well if I get that far. I'm running the built on my netbook but I'm having problems building my wifi drivers against the 3.6.0

Re: Gpio interrupt shall pass the signal to application

2012-10-06 Thread jeshwanth Kumar N K
Actually what I am doing is, I have 3 inputs to beaglebone from BLDC motor hall sensor. If there is any change in any of 3 inputs, the kernel module has to send signal to my beaglebone. From the interrupt my application reads the input from sysfs and pass the next sequence to pwm. PWM I am

Re: Question on initrd and initramfs

2012-10-06 Thread Mulyadi Santosa
Hi man :) On Sat, Oct 6, 2012 at 2:25 AM, Ezequiel Garcia elezegar...@gmail.com wrote: Just wanted to add something fresh. I'm reading through ramfs sources: $ wc -l fs/ramfs/*.c 55 fs/ramfs/file-mmu.c 267 fs/ramfs/file-nommu.c 289 fs/ramfs/inode.c 611 total 600 lines! This is

Re: Debug symbols in kernel modules

2012-10-06 Thread Mulyadi Santosa
On Sat, Oct 6, 2012 at 6:31 PM, Aft nix aft...@gmail.com wrote: Hi, When i write a makefile to build a kernel module how should i make sure that it contains debugging symbols? IIRC, it's in kernel hacking section during make config/menuconfig/xconfig. Find kernel debug or something like