Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
ReznicencuBogdan wrote:And on google all the answers used some external libraries (<linux/kernel.h> , <fcntl.h> ,<sys/types.h>... etc.) which I don't have or don't know how to link to the kernel.
I don't think those kind of libraries are the ones for operating system development. Are you sure all the answers on Google are like that?
no92 wrote:Also, please tell me, is <linux/kernel.h> a library?
john765 wrote:Well, the header file exists in the source code so yes.
You are kidding me, right? Just because there is a header file doesn't mean it is a library.
I have a suggestion: how about you copy that file into your OS and call a function from that header? Unless you have reimplemented the Linux kernel you'll end up with your linker throwing errors at you. Good luck mate.