driver writing: how to retrieve a hid_device out of context
Hi all,
I am trying to write a custom driver for a HID device.
I understand how to access the device when my driver is called by hid-core hooks (like : .open/.probe/.remove/.raw_event...), since the "struct* hid_device" context comes along.
But I am not quite sure how to have a user-space event trigger access to the device (e.g. by echoing into a chardev node). How can I then retrieve the proper *hid_device , out of context?
I try and learn by reading existing in-kernel specific hid driver but somehow I can't figure out that part.
Thanks for any lead, I 'll do my homework.
m
|