@book{El_Mahrouss_NeKernel_org_Primer,
author = {El Mahrouss, Amlal},
year = 2026,
title = {{Ne.org System Primer.}},
url = {https://src.nekernel.org}
}
https://github.com/ne-foss-org/src
https://github.com/ne-foss-org/kernel
https://github.com/ne-foss-org/nectar
Nectar.
- NeBuild
- CoreUtils
- Git
- MinGW/Clang
- libDDK.dll
This first exercise will focus on implementing a simple DDK in C, which prints a simple 'Hello, World!' to NeKernel's console output.
#include <DriverKit/DriverKit.h>
DDK_EXTERN void simple_kputc(const char ch) {
char assembled[2] = {0};
assembled[0] = ch;
assembled[1] = 0;
ke_call_dispatch("ke_put_string", 2, assembled, 2);
}
DDK_EXTERN void hello_ddk(void) {
const char* message = "Hello, World!\n";
while (*message != 0) {
simple_kputc(*message);
message++;
}
}
One shall use NeBuild to compile the DDK as follow:
nebuild hello_ddk_manifest.{json, toml}
Where the manifest files contains the needed metadata to build the DDK driver. Which links against libDDK.dll.
/GfxKit
/GPU.h
/FB.h
/Packet.h
Sources:
/src/Gfx
/GPUPacket.cpp
/FBPacket.cpp