Skip to content

Kernel Modules

Sukant Pal edited this page Feb 24, 2018 · 3 revisions

Introduction

Kernel modules allow the kernel-environment to serve the user-mode applications as broadly as possible. The Silcos kernel is centered around module interoperability and communication.

Creating a new module

To create a new module, you should create a sub-folder in the root-directory of the kernel-source. Be sure to make a module inbuilt only when it plays a crucial role. Non-inbuilt kernel modules are not supported by the standard build process currently.

The DefaultModuleLinker.ld script is your linker script. Your makefile will automatically get the $(OC), $(CC), $(AS), $(GNU_AS) toolchain variables. You compile the object-files and then link them with $(LD).

Clone this wiki locally