I am trying to understand the joydev driver (http://lxr.linux.no/linux+v2.6.36/drivers/input/joydev.c)
Where can I found informaion about that dirver?
Why there is joydev_client struct? why his field isn’t embedded inside joydev struct?
Thanks
Dan
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The joydev_client struct is used in apps to receive the joystick events (hence “client”). “joydev” by itself is used by the driver internally. You wouldn’t want to expose the internal state of the hardware to all users, so there’s two seperate structs – “user friendly” data in the client struct, private data in the main struct.