OSDev.org

The Place to Start for Operating System Developers
It is currently Sat Sep 22, 2018 1:48 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How should I write a kernel module?
PostPosted: Thu May 17, 2018 6:48 am 
Offline

Joined: Fri Apr 13, 2018 10:18 am
Posts: 19
Hi,
I am developing a kernel with initrd support and I need to write kernel modules that control storage devices. What format should I use for the modules? How should I load them?

_________________
Creator of PuckOS: https://github.com/weedboi6969/puckos


Top
 Profile  
 
 Post subject: Re: How should I write a kernel module?
PostPosted: Thu May 17, 2018 7:26 am 
Offline
Member
Member

Joined: Wed Sep 19, 2012 3:43 am
Posts: 71
Location: The Netherlands
Basically, it's all up to you.
It's your OS so you get to decide on what format to use. The choice of format (ELF/PE/roll-your-own/....) impacts how you should load them.

See https://wiki.osdev.org/Modular_Kernel, especially the "Forum Threads" section to get an idea on how to implement such a system.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 5 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