In Kernel there is a file called /linux/drivers/usb/misc/usbled.c

with reference to above file,some clarifications required for developing my led module.


I want to use usb_register_dev() and provide a major number to it,is it possible,because in above file we are using only usb_register with minor number and attaching device to existing one.

How do i create special file during insmod,normally we use mknod for creating special files and control through this from user space.

when i plug in my USB device how to make my driver to detect the hardware any Kernel_functions for polling the hardware after insmod.

Thx
Reddy