I need to install CUDA key-rings, so before installing that i need to install Linux header files, so what is Linux header files and what is the purpose of the header files.
Linux headers are declarations of a programming interface needed to interface with Linux kernel.
In short, if you have a program that talks with the kernel, to build that program, you need those files.
The purpose is to provide the header files in one place, otherwise each program would need to have a copy of the header files, and that would be a mess when something in the header files gets changed.
I always thought of it as a "manual of how to talk to linux", we need these files cause headers change with the kernel releases, without them every program would need to interface with every release and "know" all these files, which is impractical, with these files, the program at compile time just looks up in "the manual" how to interface with this release.
Basically the Linux equivalent of .net libraries.
© 2022 - 2024 — McMap. All rights reserved.