Thread: Where, Who and How of Struct input_event in Linux Input Subsystem

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    1

    Where, Who and How of Struct input_event in Linux Input Subsystem

    Hi, I am a newbie to linux and am trying to understand the linux input subsystem.

    With the online help(which is prolifically available) I understood the basics to a certain extent. Although, there is one thing that I am not able to understand, here it goes :

    Lets say there's a input device that is capable of generating an event with the help of its driver. Eg: con_dev_drv.c (attached)
    Its a driver for a virtual/fake device. One can complie it as a module and then install it by using : sudo insmod ./file_name.ko


    Now, say this application is trying to access this device : keybd_test_app.c (attached)

    All, I want to know is where is the application getting the input_event structure from.
    Who writes to this structure input_event?
    does each device has a separate input_event structure? (I guess yes)
    As,there is no input_event structure in any of these structues : struct device, struct input_dev, struct handle, struct handler. So, how is an input_event attached to the corresponding device.

    Thanks in advance.
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 16 bit MS-Dos Subsystem Prob
    By darkmessiah in forum Windows Programming
    Replies: 2
    Last Post: 07-10-2005, 11:37 AM
  2. Reinitializing Windows graphics subsystem
    By rwmm415 in forum Windows Programming
    Replies: 2
    Last Post: 11-12-2004, 07:02 PM
  3. What members does struct udphdr(linux) have?
    By failure_to in forum C Programming
    Replies: 2
    Last Post: 05-27-2004, 01:07 PM
  4. Input for Struct?
    By stewade in forum C Programming
    Replies: 26
    Last Post: 05-03-2004, 11:52 AM
  5. Buffered I/O subsystem
    By bto19 in forum C Programming
    Replies: 2
    Last Post: 03-21-2004, 05:49 PM