I'm a student working with the Linux kernel, and was wondering how to access methods and macros in the kernel header files from outside the kernel in an OS. I apologize if this is an ignorant question, Linux is not my area of expertise.
Asked
Active
Viewed 386 times
0
-
3Access them to do what? – muru Jun 11 '19 at 18:27
-
See https://gcc.gnu.org/onlinedocs/gcc-3.0.2/cpp_2.html – K7AAY Jun 11 '19 at 18:32
-
2You either install the complete kernel source (with the headers), or you install a package from your distro that only contains the kernel headers. Then you can access them in any way you want, on the file system, as files. Was that the question? – dirkt Jun 11 '19 at 19:56
-
@dirkt, you answered my question. Thank you guys! – Ramsey Alsheikh Jun 12 '19 at 00:40
-
Possible duplicate of [Command to install linux headers fails](https://unix.stackexchange.com/questions/19898/command-to-install-linux-headers-fails) – X Tian Jun 12 '19 at 09:48
1 Answers
0
You either install the complete kernel source (with the headers), or you install a package from your distro that only contains the kernel headers. Then you can access them in any way you want, on the file system, as files.
dirkt
- 31,679
- 3
- 40
- 73