Questions tagged [kernel]

The main component of most operating systems, the kernel manages most of a computer's communication between hardware and software. Typically, the kernel is the lowest level of abstraction a programmer can have to a resource.

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system.

Because of its critical nature, the kernel code is usually loaded into a protected area of memory, which prevents it from being overwritten by other, less frequently used parts of the operating system or by application programs. The kernel performs its tasks, such as executing processes and handling interrupts.

Reference

http://en.wikipedia.org/wiki/Kernel_(operating_system)

957 questions
249
votes
7 answers

Allow non-root process to bind to port 80 and 443?

Is it possible to tune a kernel parameter to allow a userland program to bind to port 80 and 443? The reason I ask is I think its foolish to allow a privileged process to open a socket and listen. Anything that opens a socket and listens is high…
jww
  • 12,722
199
votes
9 answers

How to obtain kernel config from currently running Linux system?

I accidentally deleted my .config for my kernel configuration on Linux, and seem to remember there was a way to retrieve the kernel configuration via the proc filesystem somehow. Is this still possible, and if so how would I do it?
Sonny Ordell
  • 2,177
70
votes
5 answers

How can a linux kernel be so small?

An ordinary stable 3* kernel is about 70 mb now. But there are little linux distributions of 30-10 mb with software and other stuff running out of the box. How can the linux kernel be so small in these distros? Can stripping down only unneeded…
66
votes
9 answers

Why is the first BIOS instruction located at 0xFFFFFFF0 ("top" of RAM)?

I know that BIOS loads its first instruction from 0xFFFFFFF0, but why this specific address? I've a bunch of questions and hope you can help me with some of them, at least. My questions: Why is the first BIOS instruction located at the "top" of a…
57
votes
3 answers

How can I update the kernel in WSL2 kernel to latest release?

The current kernel version in my WSL2 subsystem is: 5.10.60.1-microsoft-standard-WSL2 However, I see in the official Microsoft WSL GitHub repo there is a newer version of the kernel: linux-msft-wsl-5.10.102.1 How can I update the kernel in my…
sjrm
  • 868
56
votes
11 answers

Would an executable need an OS kernel to run?

I know that when the source code, in say C++, is compiled, the output from the compiler is the machine code (executable) which I thought were instructions to the CPU directly. Recently I was reading up on kernels and I found out that programs cannot…
GRANZER
  • 703
51
votes
2 answers

What is there in an Operating System other than the kernel

As I understand it, the kernel does all the interaction with the hardware, and manages the memory, the I/O devices, etc. So the kernel is doing everything, yet it is just a part of the operating system. So what else is there in an OS ? Just the…
AnkurVj
  • 1,111
47
votes
2 answers

Is it possible to compile a Darwin Distro from source, like you can a build a Linux Distro?

I have read through and undertaken Linux From Scratch (and BLFS) and I was wondering, can I follow this guide to create a Darwin Distro by substituting the xnu kernel? Would the process be vastly different to that outlined in LFS? My current…
Ephemera
  • 1,371
36
votes
6 answers

Is kernel a process?

In Linux, we always say the first process is init (pid==1). But why is not the kernel (startup) which setup the system and create the init process. Is kernel a process? We know all the user space threads are rooted at init process. Then what…
Guoqin
35
votes
5 answers

How to fix and prevent VirtualBox Kernel driver not installed

Today I noticed that my VirtualBox VMs no longer start. With messages The virtual machine 'CGI' has terminated unexpectedly during startup with exit code 1 (0x1). Result Code: NS_ERROR_FAILURE…
onknows
  • 877
27
votes
3 answers

How to disable IPv6 on Debian Wheezy?

I know there's a wiki entry http://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6 that shows how to disable IPv6 in Debian Squeeze, but that's a 2.6.* kernel. What about 3.2.* kernels running Wheezy?
JohnnyFromBF
  • 5,068
27
votes
8 answers

How to add a new kernel to grub2

How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?
23
votes
3 answers

how to know if noatime or relatime is default mount option in kernel?

I was trying to know if relatime or noatime was set on a filesystem, but i didn't found the information, neither in /etc/fstab, neither in kernel boot options. First of all, it seems clear that i don't have the "normal" behaviour on…
22
votes
2 answers

Which Linux kernel do I have in WSL?

I installed WSL 2 with Ubuntu 22.04. When I try to check the WSL kernel in PowerShell, I am getting this result: PS C:\Users\user> wsl --status Default Distribution: Ubuntu-22.04 Default Version: 2 Windows Subsystem for Linux was last updated on…
mans
  • 535
22
votes
3 answers

Kernel NTFS driver vs NTFS-3G

A more comprehensive phrased question since I lost access to the other one. I would ask that the other one be deleted, not this one, as it should not have been migrated in the first place. There are currently two NTFS drivers available for…
Jack
  • 2,011
1
2 3
63 64