Re: Signals/ Communication from kernel to user!

From: Lee Revell (rlrevell_at_joe-job.com)
Date: 02/28/05

  • Next message: Lee Revell: "Re: user space program from keyboard driver"
    To: Ravindra Nadgauda <rnadgauda@velankani.com>
    Date:	Mon, 28 Feb 2005 16:17:45 -0500
    
    

    On Mon, 2005-02-28 at 21:06 +0530, Ravindra Nadgauda wrote:
    >
    > Hello,
    > We wanted to establish a communication from kernel module (possibly a
    > driver) to a user level process.
    >
    > Wanted to know whether signals can be used for this purpose OR there any
    > other (better) methods of communication??

    If you need fast IPC forget about signals. They are way too slow.

    The traditional UNIX way for userspace to talk to the kernel has been
    ioctls. For various reasons ioctls are not highly regarded in the Linux
    kernel community.

    I believe the currently favored method is to have the driver create
    sysfs entries which userspace read()s and write()s.

    Really, your question is too vague. It would help if you said what
    exactly you are trying to accomplish.

    Lee

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Lee Revell: "Re: user space program from keyboard driver"

    Relevant Pages

    • Puzzled about the use of static var/function in C++
      ... The I2C driver is located in the kernel. ... be done towards the kernel to start the I2C communication protocol. ... CI2cHal to communicate indirectly with the I2C driver in the kernel. ... I also created a public static function to initialise the I2cMutex ...
      (comp.programming.threads)
    • Re: Linux GPL and binary module exception clause?
      ... If company A writes a driver which is not GPL it doesn't concern the ... If company B offered the modified driver for kernel inclusion, ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Contribute - How to
      ... > kernel. ... around for which the 2.6 driver is marked broken, ... Can I suggest new features? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: sata_promise KERNEL_BUG on 2.6.12
      ... tried with the controller) ... Could the driver "remap" it? ... drives in another way than the kernel do. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: my opinion about VGA devices
      ... > registered with the kernel. ... > the current kernel, but as soon as the first driver is registered, the kernel ... the key seems to be to get out of graphics mode ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)