Questions tagged [kernel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers

Why does linux require that newly added syscalls be supported permanently?

I was reading some of the documentation for the linux kernel and I stumbled upon an article about adding new syscalls to the linux kernel. The article essentially says that any syscall in the linux ...
2 votes
0 answers

Better alternative for cherry picking across heavily diverged branches

I'm currently trying to update the linux kernel used in a xilinx SoC, my company has an internal repo/fork of xilinx open source linux with a bunch of kernel drivers for our custom hardware & ...
  • 29
0 votes
2 answers

On hanging Desktop-applications

I am filled with questions pertaining to the situations where a desktop-application hangs, possibly for minutes. I've got this complicated game-engine written in c++. Several times during development, ...
-1 votes
2 answers

How can Monolithic kernel based OS are faster the Microkernels?

I have been studying about OS and currently, I am on "types of the kernel". Now in the book and some websites are saying Monolithic kernel-based OS is faster, but how are they faster than ...
-2 votes
5 answers

Is an OS compiled every time it boots?

Is an OS compiled every time it boots, or is it compiled once and the result used every time the OS is (re)booted? When users change settings, is the compiled kernel modified at all? If I am the one ...
  • 21
1 vote
1 answer

How do ISRs and user threads synchronize and share data?

My question is more of educational than an actual coding problem. I tried searching the web, but got little help. I am trying to learn how to write ISR and understand how they interact with user ...
2 votes
1 answer

Critical view of a particular application design

For a system, I have certain requirements should be soft realtime. should be able to handle lots of operations in parallel should have ability to add, remove, alter features should be able to ...
2 votes
0 answers

Is it dangerous to link together -mno-red-zone and regular code?

I know that in x86_64, there exists a 128 byte red zone above (or below, address-wise) the stack pointer that functions can use without subtracting from rsp. This sounds to me like the only things ...
  • 129
1 vote
1 answer

How does disk wiping software access my hard disk?

I'm an amateur programmer. I have a lot of interest in the inner workings of operating systems, a subject that I've been reading a lot about. What I've understood about kernels is that on most ...
  • 121
3 votes
2 answers

What is a unikernel?

Today, I searched for includeOS and I found that it defines itself as a minimal unikernel. I am wondering what is UniKernel. The wikipedia explanations are not clear enough to me. Is unikernel an ...
  • 138
2 votes
1 answer

Are some operation system (kernels) more efficient with hardware than others?

When comparing the Windows, macOS, and Linux kernel to each other, do some make better use of hardware in terms of cache efficiently, page lookups, or power consumption? I noticed this after ...
  • 145
-2 votes
1 answer

Loading My Custom OS from USB flash drive

Suppose I want to create a portable OS, that needs a USB flash drive only to work. and i wrote my boatloader in the first sector to be loaded by the BIOS, from here on, what can I do to load my OS ...
3 votes
2 answers

Executable verification in user mode

I am posting this here instead of on Stack Overflow because this is more conceptual. I am primarily thinking of this a Linux context, but this can be extended to other operating systems. When I didn'...
  • 247
1 vote
1 answer

Are there system calls like posix in assembly level using int number for windows

I want to write assembly program using windows syscall Interrupt number , so in order to use system call in assembly level using int of sys call, In windows are there kernel calls like posix ...
  • 127
3 votes
1 answer

Kernel operation

I'm trying to grasp the concept of an operating system at the moment (on Unix-like machines) The kernel is the process with PID 0. Of course the Kernel is not really "just another process" because a ...
  • 761
0 votes
1 answer

Kernel facilities needed for C++

I'm working on a kernel for a proprietary embeded system. I've had no issues but I'd like to expand its capabilities directly. I made it run C. I did so pretty much by giving my kernel a stack. My ...
-3 votes
1 answer

dma allocation in kernel 4g patch theory [closed]

I was reading about that that old patch. The summary of that link is to create a 4Gb kernel space, instead of 1Gb by default. Since many dma capable devices can only access 32 bit addresses or 4Gb, ...
  • 3
42 votes
5 answers

How is spinlock different from polling?

Is spinlock and polling the same thing? Wikipedia: a spinlock is a lock which causes a thread trying to acquire it to simply wait in a loop ("spin") while repeatedly checking if the lock is ...
  • 1,767
0 votes
4 answers

Relation between Kernel & BIOS routines [duplicate]

How does a Kernel provides different functionality to OS? Does it use the BIOS routines or use special device drivers for this, or something else? If uses BIOS how does it come to know which routine ...
2 votes
1 answer

Support Vector Machines as Neural Nets?

This is more of a conceptual question. I have learned about Neural Nets, and I have some clue as to how Support Vector Machines work. I read somewhere however that given the appropriate kernel (is ...
  • 131
-1 votes
2 answers

NT Kernel Source

Well, the first question would be: Is it legal to take hold of the NT Kernel Source? If so, proceed to the second paragraph; if not, proceed to the third. The first thing you'd probably ask is "Why ...
  • 89
-1 votes
2 answers

Theoretical basis for (Linux) kernel development

KernelDevViewpoint (an apparently serious source) makes kernel development look like an accessible art. According to them: Contrary to popular belief, kernel developers rarely need to know math at ...
6 votes
1 answer

Does change the license under which Linux is released need the permission of all the copyright holders?

As far as I know Linus holds the copyright to Linux. While looking around in the kernel sources, I see that almost every file has it's own copyright holders. For example the file module.c in the ...
2 votes
2 answers

Hardware running gpl code

Let's say I am selling hardware that uses the linux kernel. Do I have to state somewhere that it is running linux(or other gpl code)? The reason I am asking this is because I bought a television, ...
4 votes
1 answer

unseen/unknown function definition in linux source

Can any one please explain this piece of code I found in the linux kernel source. I see a lots of code like this in linux and minix kernel but dont seem to find what it does (even if C compilers ...
  • 238
20 votes
13 answers

Why do operating systems do low level stuff in C and C++? Why not just C++?

On the Wikipedia page for Windows, it states the Windows is written in Assembly for the bootloader and task switcher, and C and C++ for kernel routines. IIRC, you can call C++ functions from an ...
  • 1,443
0 votes
2 answers

Are monolith and microkernel design patterns or strategies?

What's the difference between a design pattern and a strategy? Is the monolith actually an anti-pattern?
170 votes
12 answers

How do operating systems… run… without having an OS to run in?

I'm really curious right now. I'm a Python programmer, and this question just boggled me: You write an OS. How do you run it? It has to be run somehow, and that way is within another OS? How can an ...
  • 1,423
3 votes
2 answers

Are there similarities between operating system kernels and programming language kernels?

I know very little about Smalltalk but I noticed that there's a frequent mention of the "kernel". Dan Ingalls prime maintainer of several implementations of Smalltalk also worked on a Javascript ...
  • 1,016
7 votes
4 answers

Why does ARM processors dominate Mobile platforms while x86 dominates Desktop/Server platforms

Almost all of the mobile phones, except the ones being produced by Intel, use ARM based processors while desktop/server industry is dominated x86 processors. What features does one provide over the ...
239 votes
15 answers

Why was Tanenbaum wrong in the Tanenbaum-Torvalds debates?

I was recently assigned reading from the Tanenbaum-Torvalds debates in my OS class. In the debates, Tanenbaum makes some predictions: Microkernels are the future x86 will die out and RISC ...
2 votes
1 answer

Low Level vs High Level Development [closed]

I really want to start working in OS development, particularly kernel development, with the Open Source Darwin Project - building my own Mac-like operating system, however I am simply not experienced ...
18 votes
6 answers

Is Assembly still relevant? [closed]

Are there major differences between assembly language and higher level languages when it comes to coding and/or managing projects? Obviously it takes more statements in assembly language to carry out ...
's user avatar
19 votes
5 answers

Advice for an ambitious student on building your own kernel [closed]

I'm a very ambitious university student who wishes to learn pretty much everything there is to know about computers (bash me if you want, I love learning). Recently I thought it would be a fun project ...
  • 756
7 votes
4 answers

Other than the Linux kernel, which operating system kernels should you study? [closed]

The Linux kernel is often listed as a code base which you are recommended to read and, even if it is poorly commented (or the files I have looked at have all been), it does have some really good code ...
  • 11.1k
12 votes
5 answers

How to understand Linux kernel source code for a beginner? [closed]

I am a student interested in working on Memory Management, particularly the page replacement component of the linux kernel. What are the different guides that can help me to begin understanding the ...
's user avatar
14 votes
3 answers

What are some interesting but not too difficult projects for a beginner kernel hacker?

Having taken a course in Operating Systems I'm interested in expanding my knowledge of the Linux kernel and practice working with a big system. What are some interesting but not overly difficult ...