New answers tagged

4 votes

How is a signal "delivered" in Linux?

I have an answer to a very similar question on Stack Overflow: https://stackoverflow.com/questions/6949025/how-are-asynchronous-signal-handlers-executed-on-linux/6949377#6949377 Signals are delivered ...
9 votes

How is a signal "delivered" in Linux?

The interrupt handler (signal handler) is not the process thread, nor any thread running under that process, correct? The kernel doesn't start a new thread to execute a signal handler. It executes ...
  • 510
1 vote
Accepted

What is mnt_cache in slabtop output on Linux?

This is the slab cache for struct mount allocations which are used to store information about mount points. The cache is initialised in mnt_init and used whenever a struct mount needs to be ...
56 votes

How is a signal "delivered" in Linux?

A signal handler is just a function within a given process' address space. This function is executed whenever the signal is received. There's nothing special about it (although there are certain ...
  • 2,392
0 votes
Accepted

What configuration files does linux kernel lookup directly in root filesystem?

A few words about the Linux kernel and its role. By itself the kernel does literally nothing. I'm not joking. When you load it, it tries to initialize your hardware and then it tries to execute /sbin/...
-1 votes

What configuration files does linux kernel lookup directly in root filesystem?

@Stephen Kitt already provided a good answer, but if you would like to know to which utility/package the file belons to, you can try something like this. Debian based with deb packages: find /etc/ -...
  • 1,437
1 vote

What configuration files does linux kernel lookup directly in root filesystem?

None: the kernel doesn’t read any configuration file directly. Various tools read configuration files and set things up in the kernel (e.g. sysctl) but the kernel itself doesn’t.
0 votes

Set default kernel in GRUB

In short, steps that work for me: Edit /etc/default/grub GRUB_DEFAULT=0 The indexing of all installed kernel/OSes starts with '0'. Pick yours, if not '0'. Regenerate the grub configuration sudo ...
  • 161
0 votes

kernel panic in Debian

On the first line in the picture, the system has done a filesystem check on /dev/nvme0n1p2 and it has been successful. On the second line, init[1] reports a segmentation fault in ld-linux-x86-64.so.2. ...
  • 77.4k
0 votes

Wine: could not load kernel32.dll, status c0000135 Kali Linux

I had the same issue and it was probably due to misconfiguration. It worked got rid of old ~/.wine folder. Run: mv ~/.wine ~/.wine.old or rm -r ~/.wine. Then run Wine again.
1 vote

Why SELinux is not part of DAC?

I take it you are referring to Discretionary Access Controls (https://en.wikipedia.org/wiki/Discretionary_access_control) and you are wondering why the perceived security benefits of SELinux are not ...
  • 1,226
0 votes

'Operation not permitted' when using modprobe/insmod

The Operation not permitted is from the kernel during the insmod operation. Given that the kernel ring buffer outputs GageDrv module initialization failed, error -1, it's likely the error is from the ...
  • 1,453
1 vote

How does linux prevent whole system from freezing when a process crashes

Typically no process gets full control to begin with, that's the point of an operating system. That is also why operating systems are by very nature "slower" in running everything. For ...
  • 31
0 votes
Accepted

How Do Logs Get From "Kernel Ring Buffer" to "/proc/kmgs" and "/dev/kmsg"?

/proc/kmsg is handled by fs/proc/kmsg.c, /dev/kmsg is handled by the kmsg driver in kernel/printk/printk.c. In both cases, logs aren’t copied from the ring buffer to the reader until a process reads ...
1 vote

How to run linux distributions on android tablets?

Android uses a patched Linux kernel which includes a ton of firmware and often closed libraries to support/use hardware (touch screen, radio modules, GPS modules, audio, etc.) which means using a ...
1 vote
Accepted

How can I fix scripts in /lib/linux-kbuild on Debian 11: pahole-flags.sh not found

The commit you referred to modifies the part of Makefile that is used for building the Debian kernel headers packages (linux-headers-<kernel version>-<package version>_<arch>.deb). ...
  • 77.4k
0 votes

How to transfer files from host OS to qemu running kernel only?

The kernel itself cannot do anything aside from initializing hardware [devices] and creating RAM mappings (so you could use it from userspace). I'm not joking. What you're asking looks impossible.
0 votes

What exactly differentiates operating system from kernel?

Operating system = kernel + application programs. To see this, let's take Linux distros for example. A Linux distro, like Ubuntu, is an operating system. Linux distros are "Linux" because ...
0 votes

kworker hogging CPU but I don't know why

I remove cap-sdio-irq in dts and fix cpu usage from 20% to 0.5%
  • 1

Top 50 recent answers are included