Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For example, I write my own device driver for a specific device, any kind really, such as maybe a wireless USB mouse or the like ... how do I add it to the Linux kernel?

Will the kernel support drivers? How would this process go about?

Not too familiar with Linux's kernel system...

share|improve this question
add comment

1 Answer

A driver is nothing more than a loadable ELF object file, similar to a normal library. Once your driver code has been compiled into such a file, you can load it with the same tools as you use for other drivers (insmod or modprobe). I'd recommend you read Linux Kernel Programming or LDD3 for much more information about what you actually need to do. You'll find that loading the driver is actually the easy bit :)

share|improve this answer
    
Compared to the fact that I'm going to be writing my own, I'd say yeah. –  Bigyellow Bastion Dec 15 '12 at 21:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.