OSDev.org
https://forum.osdev.org/

How should I write a kernel module?
https://forum.osdev.org/viewtopic.php?f=1&t=32944
Page 1 of 1

Author:  weedboi6969 [ Thu May 17, 2018 6:48 am ]
Post subject:  How should I write a kernel module?

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?

Author:  FusT [ Thu May 17, 2018 7:26 am ]
Post subject:  Re: How should I write a kernel module?

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.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/