Dear All
I am looking for linux kernel source code for hid module
hid.c for kernel version 2.6.27.14
Thanks & regards,
madni
madni[AT]gmail[DOT]com
Dear All
I am looking for linux kernel source code for hid module
hid.c for kernel version 2.6.27.14
Thanks & regards,
madni
madni[AT]gmail[DOT]com
Have a look here:
http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=summary
You're asking for the stable tree (hence the .14 at the end), which can be found at here
Browse the .14 release here. It can be downloaded with git
The problem with the HID module is that it is in several files and cannot be separated easily. For example, 'find | grep hid | wc -l' gives 62 files matching 'hid'.
for HID (hid.o) linux kernel module use
hiddraw.c
hid-core.c
hid-input.c
hid-input-quir.c
Makefile:
obj-m := myhid.o
myhid-objs := my-hiddraw.o my-hid-core.o my-hid-input.o my-hid-input-quirk.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) M=$(PWD) modules
Add module in kernel as
$ sudo rmmod usbhid; sudo rmmod hid; sudo insmod myhid.ko; sudo insmod /[MODULE PATH]/usbhid.ko