OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:08 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: File I/O from Kernel
PostPosted: Tue May 02, 2017 8:35 am 
Offline
Member
Member

Joined: Mon May 01, 2017 3:56 am
Posts: 44
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?


https://github.com/torvalds/linux

Well, the header file exists in the source code so yes.


Top
 Profile  
 
 Post subject: Re: File I/O from Kernel
PostPosted: Tue May 02, 2017 2:57 pm 
Offline
Member
Member

Joined: Wed Oct 30, 2013 1:57 pm
Posts: 306
Location: Germany
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.

_________________
managarm


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], DotBot [Bot], Google [Bot], SemrushBot [Bot] and 62 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group