Locating the keyboard driver (and replacing it)

2012-12-13 Thread manty kuma
Hi, I have written a small module that toggles the capslock LED. To demonstrate it i want to replace the Existing keyboard module with mine. I tried lsmod|grep "key" without any success. also checked /proc/modules. I couldnot find any clue regarding the name of the module i need to uninstall. So,

Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread jeshkumar...@gmail.com
Hello :), Refer this doc for user and kernel communication methods. Hope it helps :). people.ee.ethz.ch/~arkeller/linux/multi/kernel_user_space_howto.html#toc2 Sent from my HTC Excuse for typo. - Reply message - From: "horse_rivers" Date: Fri, Dec 14, 2012 6:29 am Subject: can I input

Re:Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread horse_rivers
At 2012-12-13 18:11:24,"Daniel Baluta"  wrote: >On Thu, Dec 13, 2012 at 5:17 AM, horse_rivers  wrote: >> is there method for doing this work? take kernel data to user? > >Check copy_to_user [1]. how can user application achive to getting data from kernel , I have no idea about  procedure for impl

Re:Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread horse_rivers
At 2012-12-13 18:52:53,"Matthias Brugger"  wrote: >On 12/13/2012 04:17 AM, horse_rivers wrote: >> is there method for doing this work? take kernel data to user? > >I think copy_to_user is what you are looking for: >http://lxr.free-electrons.com/source/include/asm-generic/uaccess.h#L253 > thanks !

Block device driver: how to terminate the block device if media disappears?

2012-12-13 Thread John Beard
Hi, I have block driver for a hot-pluggable device PCIe storage device on kernel version 2.6.43 (which I know isn't a mainline kernel version, but it's what I am required to build against). The driver itself is relatively simple and implements the following block operations: static struct

Re: QoS Kernel Implementation

2012-12-13 Thread Shubhrajyoti Datta
On Wed, Dec 12, 2012 at 4:17 PM, Pietro Paolini wrote: > Hi all, > > > > I am going to study the Linux implementation of the QoS on the Linux kernel, > could someone give me some link at documents, papers… Kernel documentation http://lxr.free-electrons.com/source/Documentation/power/pm_qos_inter

Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread Matthias Brugger
On 12/13/2012 04:17 AM, horse_rivers wrote: > is there method for doing this work? take kernel data to user? I think copy_to_user is what you are looking for: http://lxr.free-electrons.com/source/include/asm-generic/uaccess.h#L253 Cheers, Matthias > > > thanks! > > __

Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread Daniel Baluta
On Thu, Dec 13, 2012 at 5:17 AM, horse_rivers wrote: > is there method for doing this work? take kernel data to user? Check copy_to_user [1]. thanks, Daniel. [1] http://lxr.linux.no/#linux+v3.7/arch/x86/lib/usercopy_32.c#L715 ___ Kernelnewbies mailin

Re: Why do { // do something ; } while (0); ?

2012-12-13 Thread Adel Qodmani
On Thu, Dec 13, 2012 at 10:55 AM, Shraddha Kamat wrote: > I notice > > do { >// do something 1 ; >// do something 2 ; >... > } while (0); > > being used everywhere in the kernel code > I just can't guess of any use of this other > than executing couple of C statements together ? > > I

Re: Why do { // do something ; } while (0); ?

2012-12-13 Thread Adam Lee
On Thu, Dec 13, 2012 at 02:25:37PM +0530, Shraddha Kamat wrote: > I notice > > do { >// do something 1 ; >// do something 2 ; >... > } while (0); > > being used everywhere in the kernel code > I just can't guess of any use of this other > than executing couple of C statements toge

Why do { // do something ; } while (0); ?

2012-12-13 Thread Shraddha Kamat
I notice do { // do something 1 ; // do something 2 ; ... } while (0); being used everywhere in the kernel code I just can't guess of any use of this other than executing couple of C statements together ? Is there any special purpose of doing this ?? Sorry of such a silly question