LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   linux headers (https://www.linuxquestions.org/questions/programming-9/linux-headers-245132/)

reejadb04 10-20-2004 11:10 AM

linux headers
 
Can anyone explain why almost all the funtions declared in '/src/include/linux' or '/src/include/asm' cannot be used ?. I mean, why such a simple program like this:

#include <linux/mm.h>
#include <asm/meminit.h>

int main ()
{
exit(0);
}

generates errors ?. Am I missing something ?

Thank for the answers.

Hko 10-20-2004 11:28 AM

Re: linux headers
 
Quote:

Originally posted by reejadb04
Can anyone explain why almost all the funtions declared in '/src/include/linux' or '/src/include/asm' cannot be used ?. I mean, why such a simple program like this:

That 's because most of them, if not all, are only to be used when you are programming linux-the-kernel itself (or a module).

You don't need them for a normal (user-space) program either...


All times are GMT -5. The time now is 10:44 AM.