Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using kernel 3.2.0-24-generic. I need to modify source files of ath9k and mac80211. One of the files in mac80211 refers to a few linux header files such as linux/slab.h, linux/skbuff.h, linux/etherdevice.h, linux/if_arp.h and so on. I have installed the latest headers but still these are missing. Where can I download these header files?

share|improve this question
up vote 0 down vote accepted

Maybe you just need to point things to the right place?

$ find /usr/src/ -iname slab.h

$ dpkg -S /usr/src/linux-headers-3.2.0-24/include/linux/slab.h
linux-headers-3.2.0-24: /usr/src/linux-headers-3.2.0-24/include/linux/slab.h

So as long as you have the linux-headers-3.2.0-24 package, you should be good to go.

Also, if you update your question with the command you're running to compile the module you're modifying it may be helpful, because modules need to be compiled a specific way (I'm no expert, I'm hoping someone notices it and tells us how it's done).

share|improve this answer
Thank you for the response. I needed to include the folder under directories to be searched. – user592748 Jun 16 '12 at 11:05

Your Answer


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.