Skip to main content

Questions tagged [kernel]

Code that is intended to run in an operating system kernel or kernel module

1 vote
0 answers
107 views

(See the previous and initial iteration.) This time I have incorporated some improvement points made by G. Sliepen: driver.cpp: ...
coderodde's user avatar
  • 32.3k
8 votes
1 answer
550 views

(See the second and next iteration.) Intro I have this GitHub repository. Basically, it does not do anything fancy: it has a byte buffer of 1Kb size, and it intercepts ...
coderodde's user avatar
  • 32.3k
2 votes
0 answers
101 views

...
anoncr's user avatar
  • 21
4 votes
2 answers
357 views

I wrote a small LKM that opens the /proc/cpuinfo file, reads it line by line, and attempts to the cpu model name. If the function fails to extract the cpu model ...
766F6964's user avatar
  • 901
4 votes
1 answer
545 views

Here is the plan: a slab takes up 1 page and it has PGSIZE / blocksize amount of blocks the minimum blocksize is 8 bytes, otherwise the pointer to the next block ...
runningupthatroad's user avatar
2 votes
1 answer
404 views

I have made a simple round robin scheduler that switches between threads in ptable array. Currently it's only for 1 CPU, so there are no locks at the moment. But ...
runningupthatroad's user avatar
1 vote
1 answer
363 views

Virtual Memory manager that has functions, mappage, unmappage, remappage If the physical ...
runningupthatroad's user avatar
3 votes
1 answer
370 views

Bitmap page allocator that scans the bitmap linearly looking for size amount of pages. Everytime it founds a free page, it check if the next ...
runningupthatroad's user avatar
3 votes
1 answer
283 views

UEFI bootloader. It reads the file kernel.elf on the disk image, reads through the program headers, copies the LOAD segments into memory, and finally calls ...
runningupthatroad's user avatar
2 votes
0 answers
90 views

I'm writing memory manager for my toy operating system and I would like to get some feedback. There is physical memory manager, which uses bitmap, virtual memory manager which uses buddy algorithm for ...
Mateusz's user avatar
  • 21
2 votes
0 answers
326 views

I ported the Physical Memory Manager from Vinix into C for a little OS I'm working on. I'd love to get some feedback. Here's my code: ...
Rayan's user avatar
  • 21
1 vote
1 answer
413 views

I am asked to implement the following part of code into kernel code. Actually, I have tried but not sure about the std::array. This is the original code for the ...
user247399's user avatar
2 votes
2 answers
260 views

So I've started writing an OS to know how they work, and I came up with the following makefile to compile it. The reason I used a makefile is because I wanted to see everything it was doing and have ...
rajdakin's user avatar
4 votes
2 answers
177 views

My hobby is Unix-like operating systems. Recently I began writing my own sel4-based Posix compliant OS. Here's the code for internal signal handling functions which presents a kind of backend to help ...
Сергей Волкович's user avatar
4 votes
0 answers
80 views

I have been testing a number of kernel builds and I decide to have a go at writing some Python code. The idea is to select which kernel to boot on the next reboot. I could have done it in Bash but ...
Sniggum's user avatar
  • 41

15 30 50 per page