Top "Linux-kernel" questions

This tag is for questions about the internals of the Linux kernel itself - particularly about writing code that runs within the context of the kernel (like kernel modules or drivers).

How much memory could vm use

I read the document Understanding Virtual Memory and it said one method for changing tunable parameters in the Linux VM …

linux-kernel
Which real-time priority is the highest priority in Linux

In the Linux real-time process priority range 1 to 99, it's unclear to me which is the highest priority, 1 or 99. Section 7.2.2 of "…

linux linux-kernel real-time
Converting jiffies to milli seconds

How do I manually convert jiffies to milliseconds and vice versa in Linux? I know kernel 2.6 has a function for …

linux linux-kernel
Configuring ARP age timeout

I am trying to configure the ARP age timeout. I think I should set /proc/sys/net/ipv4/neigh/default/…

linux linux-kernel arp
Android: How to get kernel logs after kernel panic?

I am using an Android Custom ROM on my device, also with a custom boot.img (custom kernel + cmdline + ramdisk). …

android linux-kernel root logging panic
How to use Linux software watchdog?

Can anybody tell me how to handle the software watchdog in Linux? I have a program SampleApplication which runs continuously …

linux linux-kernel busybox watchdog
How to write a simple Linux device driver?

I need to write an SPI Linux character device driver for omap4 from scratch. I know some basics of writing …

c linux linux-kernel linux-device-driver embedded-linux
Privileged containers and capabilities

If I am running a container in privileged mode, does it have all the Kernel capabilities or do I need …

docker linux-kernel kubernetes linux-capabilities
How to determine if a specific module is loaded in linux kernel

I am just curious is there any way to determine if a particular module is loaded/installed. $lsmod lists all …

unix linux-kernel insmod
Understanding container_of macro in the Linux kernel

When I was browsing the Linux kernel, I found a container_of macro which is defined as follows: #define container_…

c linux-kernel c-preprocessor