Missing Linux Kernel Headers

My question is why Clear Linux does not include all the linux kernel headers? My second question is what is the best way to go about adding them?

I was trying to use the <linux/slab.h> header and I noticed it is not in the clear linux system.

Is this really hard to find?

Maybe I misunderstand what you’re trying to say doc. I understand the file is in linux. However I do not think it is in the clear linux build. For example, when I type:
$ locate slab.h
I only get:

swupd search-file slab.h

You can for example install linux-dev bundle

1 Like

Thank you! It hadn’t occurred to me to use the swupd to get it. I has assumed since it wasn’t already installed that it’s not possible to install easily.

For anyone else who sees this, doc’s answer worked.
I also recommend looking at this: https://docs.01.org/clearlinux/latest/guides/kernel/kernel-modules.html