Where can I find the entire kernel in the source code?

If it doesn't fit anywhere else, drop it in here. (not to be used as a chat/nonsense section)

Moderator: Moderator Team

Post Reply
Thanatophobia
Posts: 38
Joined: Tue Oct 16, 2018 1:28 pm

Where can I find the entire kernel in the source code?

Post by Thanatophobia »

Hello the ReactOS community. I am planning to one day build an operating system with an NT-like kernel. The goal of the operating system is to have the look, feel and functionality of Windows 7, but not necessarily to be fully compatible with it. Its not going to be a complete fork of ReactOS but its just going to use the kernel of ReactOS and I want to modify it to NT 6.x standards.
  1. Where in the ReactOS source code can I find just the kernel and not anything else?
  • Is the kernel licensed GPLv2 only, GPLv3 only, or either licenses or later?
hbelusca
Developer
Posts: 1204
Joined: Sat Dec 26, 2009 10:36 pm
Location: Zagreb, Croatia

Re: Where can I find the entire kernel in the source code?

Post by hbelusca »

Look at https://git.reactos.org/?p=reactos.git;a=tree and the answers to your questions should be pretty obvious.
Thanatophobia
Posts: 38
Joined: Tue Oct 16, 2018 1:28 pm

Re: Where can I find the entire kernel in the source code?

Post by Thanatophobia »

hbelusca wrote: Tue Oct 16, 2018 2:23 pm Look at https://git.reactos.org/?p=reactos.git;a=tree and the answers to your questions should be pretty obvious.
Is it ntoskrnl? But does that file contain the entire kernel or are other files also part of the kernel?
karlexceed
Posts: 531
Joined: Thu Jan 10, 2013 6:17 pm
Contact:

Re: Where can I find the entire kernel in the source code?

Post by karlexceed »

On GitHub as well:
https://github.com/reactos/reactos/tree/master/ntoskrnl

The devs keep the source pretty organized. I'd be surprised if anything specifically related to the kernel were outside of that folder.
hbelusca
Developer
Posts: 1204
Joined: Sat Dec 26, 2009 10:36 pm
Location: Zagreb, Croatia

Re: Where can I find the entire kernel in the source code?

Post by hbelusca »

So yes, the kernel is in the "ntoskrnl/" directory. But of course this code also depends on some header (.h) files that are elsewhere (in some sub-directories of "sdk/include/"), it depends on some (but not all) static libraries whose code is in "sdk/lib/".
Also, in the NT architecture (and so, in ReactOS as well), the drivers are separated from the kernel; they can be found in the "drivers/" directory.
Between the kernel and the bare metal HW, there is the so-called "Hardware Abstraction Layer" (HAL), whose code (different flavours thereof) is in sub-directories inside "hal/".
Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests