views:

230

answers:

5

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

A: 

Have a look here:

http://git.kernel.org/?p=linux/kernel/git/jikos/hid.git;a=summary

Alan Haggai Alavi
Will you pleaase post the whole web link to downloadThanks
Madni
A: 

All of the 2.6 sources can be found here

http://www.kernel.org/pub/linux/kernel/v2.6/

mdec
A: 

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'.

Rutger Nijlunsing
A: 

Will you let me know the direct download web link of it. Thanks

Madni
A: 

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

Madni