r/kerneldevelopment • • Sep 06 '26

Dragon Microkernel in SPARK Ada

Thumbnail
reddit.com
5 Upvotes

r/kerneldevelopment • • Aug 26 '26

ATA reads taking a long time

Post image
5 Upvotes

r/kerneldevelopment • • Jul 25 '26

zuzuOS v0.7 and zuzu kernel v1.0 has released!

Thumbnail
reddit.com
5 Upvotes

r/kerneldevelopment • • Jun 16 '26

Some key details i felt missing in the cmos section ( osdev wiki).

Thumbnail reddit.com
5 Upvotes

r/kerneldevelopment • • Apr 27 '26

Discussion (article) Are big locks that bad?

Thumbnail kamkow1lair.pl
5 Upvotes

r/kerneldevelopment • • Mar 27 '26

Showcase tomOSii: Update: Refactored tty and console, added serial console

5 Upvotes

Hi all,

tomOSii -- my hobby os project -- received quite a few updates / refactorings over the past months.

The tty subsystem has been revised in order to (try to) reflect how things might be done in Linux:

  • we now have the tty subsystem extracted separately

  • the subsystem provides the file system interface for all ttys -- not that tomOSii would support more than one, but anyway

  • there is a basic implementation of a line discipline

  • a virtual tty terminal driver is implementing the tty in use

  • a virtual terminal subsystem receives the input to hopefully someday enable switching between multiple VTs

In the same regard, the console subsystem has been adjusted to work with the new tty interfaces, and:

  • the thing formerly referred to as the "console backend" as become a vga text video driver

  • a serial console has been added

  • therefore also a serial line driver

  • a console providing both, screen and serial output, has been added

This is mainly preparing some hopefully sensible integration tests using qemu piping the serial output to stdout; and allowing for seeing things on screen while having qemu log the simultaneous serial output to a file for later inspection.

Everything that has been touched during these refactorings received a rudimentary documentation.

Next, I will have to refactor some old file system interfaces and/or add userspace proper. Let's see.

Links:

Once again, feedback is very welcome.


r/kerneldevelopment • • Mar 08 '26

Showcase Added Multiple TTY Support to my Operating System

Thumbnail reddit.com
5 Upvotes

r/kerneldevelopment • • Feb 25 '26

Can it run doom? AND Quake 2

Thumbnail
reddit.com
5 Upvotes

r/kerneldevelopment • • Feb 06 '26

RCU synchronize using CPU local counters

5 Upvotes

I had an idea about how to implement synchronize_rcu and was wondering if this has been done or if it seems like a reasonable thing to do. I understand that to free objects that can be freed due to an RCU write operation, you wait for other cores to go through a "quiescent state". This seems kind of complicated and high-latency to me, since it can take any amount of time for a core to get there. Could you do something more like a sequence lock, where there would be a core-local counter that's incremented each time a core locks or unlocks an RCU read lock. Synchronize would then take a snapshot of the counters and spin until each counter is either larger than it was when it started, or ignore it if the counter is even. I guess it would be bad for cache to access other core's local data in a tight loop, but it would skip cores it knows it can skip (the counter has been read as larger-or-even before), which would be most of them most of the time.

If you needed reentrant or nested RCU read locks, they could be implemented using a second counter, that's incremented when locking if the first counter is already odd.


r/kerneldevelopment • • Nov 26 '25

Scaling real-time file monitoring with eBPF: How we filtered billions of kernel events per minute

Thumbnail
datadoghq.com
5 Upvotes

r/kerneldevelopment • • Nov 26 '25

Question How do you test your OS?

5 Upvotes

EDIT: I meant debug 😔

So for a while now I have been working on zeronix. But I have always jeg depended on the QEMU logs and printf-debugging. So I just wanted to ask how you intergrate a debugger into your IDE (I use vscode btw).

I was thinking about maybe using tasts.json and launch.json but they feel kinda confusing 😅. My toolchain also also kinda centered around Clang. I use clangd for my language server and clang-format for formatting. I just don't know if it is best to use GDB or LLDB either...


r/kerneldevelopment • • Nov 03 '25

Question I wana start my own os too

5 Upvotes

Hello. I been codding in C, C++, Assembly(AT&T but not so confidient) and Rust for a while now. And i wana start my own os project too. How and where can i start? Ah also i just dont like fallowing tutarials and copy paste stuff so i prefer if its just msays what should i lern and do. But im fine with tutarials too


r/kerneldevelopment • • Oct 30 '26

Finally after 7 months my OS has been converted from a monolithic kernel to a micro kernel

Thumbnail
reddit.com
4 Upvotes

r/kerneldevelopment • • Aug 23 '26

Things I RE-learned this week

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Aug 15 '26

Updated the zuzu docs page ahead of zuzuOS v0.8!

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Jul 26 '26

Showcase AiraOS

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Apr 05 '26

How to debug user space

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Mar 31 '26

Question Need help with kernel modules for linux kernel

4 Upvotes

I don't know if this is the right subreddit for this question but I'll ask anyways. I am trying to get into kernel driver development, so I am trying to understand how to write kernel modules and compile them. I have written a basic hello world modules from the book I am referring to, which goes something like this

#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("Simple Hello World Module");

static int hello_init(void)
{
  printk(KERN_ALERT "Hello, world\n");
  return 0;
}

static void hello_exit(void)
{
  printk(KERN_ALERT "Goodbye, cruel world\n");
}

module_init(hello_init);
module_exit(hello_exit);

And here is the make file

obj-m := hello.o

all:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

And the make is successful but when i try to run insmod in root I get the following:

[root@fedora]/home/cold_hands55/Documents/linux-drivers# insmod ./hello.ko
insmod: ERROR: could not insert module ./hello.ko: Invalid module format

And here is the output for dmesg | tail -20

[root@fedora]/home/cold_hands55/Documents/linux-drivers# dmesg | tail -20
....
[ 4394.465357] module hello: .gnu.linkonce.this_module section size must match the kernel's b
uilt struct module size at run time
[ 4405.534098] module hello: .gnu.linkonce.this_module section size must match the kernel's b
uilt struct module size at run time
[ 4529.827930] module hello: .gnu.linkonce.this_module section size must match the kernel's b
uilt struct module size at run time
[root@fedora]/home/cold_hands55/Documents/linux-drivers# 

r/kerneldevelopment • • Feb 08 '26

What (old) systems support BIOS EDD extensions?

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Jan 23 '26

Nyxian (native code IDE and kernel virtualization layer on unjailbroken iOS) (OSS Project & Contribution)

4 Upvotes

r/kerneldevelopment • • Jan 03 '26

Showcase WIP, from-scratch, non-POSIX compliant OS in the works!

Thumbnail reddit.com
4 Upvotes

r/kerneldevelopment • • Jan 02 '26

Showcase tomOSii – experimental x86_64 kernel/OS for exploring core kernel concepts

4 Upvotes

Hi,

I would like to share tomOSii, an experimental OS/kernel project I’ve been working on for quite some time.

It currently targets x86_64 (running under QEMU) and uses a monolithic kernel, written mostly in C with some assembly. The project is very much a work in progress — various kernel subsystems exist at different stages of completeness.

The main goal is to explore and experiment with core kernel/OS mechanisms (bootstrapping, memory management, basic kernel infrastructure, etc.) and to dig into the design trade-offs involved, rather than to build a production-ready system.

One motivation is that this is also serving as an experiment to help inform a potential future operating systems course. So, I’m particularly interested in feedback around structure, clarity, and design choices from a kernel-development perspective.

Overview of what’s implemented so far:

Links:

Feedback or suggestions are welcome.


r/kerneldevelopment • • Oct 12 '26

A group of people building their own kernel from scratch

3 Upvotes

I came across a kernel project and wanted to share it here. Maybe some of you would be interested in contributing, giving feedback, or simply discovering something new and getting curious about it.

There is a group called Logical, and I think they are doing some genuinely impressive work. They previously wrote their own libc (I'm not a developer myself, by the way), and now their current goal is to get X11 running.

Of course, kernel development has never been easy. Linus Torvalds spent nearly three decades bringing the Linux kernel to where it is today, long before AI became a thing. Logical currently has a 32-bit kernel project, and from what I've seen, they seem really motivated to keep developing it. Most members of the group are working on different things, and people outside the group can also contribute patches and take on certain tasks. They even have a Matrix space, although they don't have many members yet since they are still relatively unknown.

Anyway, I've talked enough. Here's the group:

https://codeberg.org/logical

If this sounds interesting to you, feel free to check out their work. You can also join their Matrix space and ask them questions if you'd like.

I think supporting projects like this is important. In the age of AI, there's something genuinely cool about people coming together, figuring things out on their own, and building a kernel without relying on AI to do the work for them. It reminds me of the hacker culture of the '90s, when people came together around their passion for technology and built things simply because they wanted to.

I think projects like this deserve more attention, and maybe some of you will find something meaningful in them too.


r/kerneldevelopment • • Sep 30 '26

Klt ult

3 Upvotes

What exactly are kernel level threads
And why are ult mapped to klt
And why are they said to be an execution context
Are they analogous to pcb

How they work


r/kerneldevelopment • • Sep 21 '26

blockos create service manager

3 Upvotes

Hi everyone, 

I am currently working on an experimental x86-64 operating system built from scratch in C++ called BlockOS. It boots via UEFI, runs under QEMU, and I am currently mapping out the user-space and subsystem integration roadmap. 

The project currently has a basic kernel, a VFS layer, memory management, and a developing syscall layer. My next major goal is to implement a Service Manager / Init System (service supervision and daemon management). 

Since I am writing this from scratch, I wanted to gather some architectural advice and best practices from this community before I dig too deep into the code. 

My main questions and considerations: 

  1. IPC Mechanism: What is the preferred or cleanest Inter-Process Communication (IPC) design you would recommend for a hobby OS to allow the service manager to securely communicate with daemons and user-space utilities? Should I jump straight into standard Unix-like domain sockets, or is there a lighter, more microkernel-inspired message-passing approach that works well for hobby projects? 

  2. Process Tracking: How do you reliably track spawned services? Do you rely heavily on a parent/child process tree structure (like traditional PID 1), or have you implemented something akin to Linux's cgroups (control groups) to prevent "orphan" background processes from escaping the service manager? 

  3. Event Notification: For service dependency management (e.g., Service B waiting for Service A to be fully ready), what kind of event/notification loops (like poll/epoll mechanisms or custom kernel event queues) have you found the most elegant to implement in a custom kernel? 

I want to keep the codebase clean, modular, and readable as the OS evolves. If you have written an init system or service supervisor for your own hobby OS, what was the biggest mistake you made early on, and what would you do differently today? 

Any architectural tips, design patterns, or links to minimal open-source implementations for inspiration would be highly appreciated! 

Thanks in advance! 

github:https://github.com/gurijb2016-afk/Blockos