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).

Accurate calculation of CPU usage given in percentage in Linux?

It's a question which has been asked many times, however there is no well supported answer I could find. Many …

linux linux-kernel cpu calculator cpu-usage
Finding original MAC address from Hardware itself

Os:REDHAT LINUX Linux manage: 2.6.18.8-1 # Is this possible to read MAC address form NIC directly ? I have below code …

linux sockets linux-kernel linux-device-driver mac-address
How to compile dts Linux device tree source files to dtb?

I have a device tree file (.dts) and I want to compile the file for my powerpc based board. How …

linux-kernel cross-compiling embedded-linux powerpc device-tree
What are IN & OUT instructions in x86 used for?

I've encoutered these to instructions IN & OUT while reading "Understanding Linux Kernel" book. I've looked up reference manual. 5.1.9 I/…

assembly x86 linux-kernel
spin_lock_irqsave vs spin_lock_irq

On an SMP machine we must use spin_lock_irqsave and not spin_lock_irq from interrupt context. Why would …

linux-kernel spinlock
Linux keyboard event capturing /dev/inputX

I was trying to capture keyboard events. e.g. I want to drill down a keylogger from the scratch. After 2 …

linux linux-kernel linux-device-driver
How does Linux Kernel know where to look for driver firmware?

I'm compiling a custom kernel under Ubuntu and I'm running into the problem that my kernel doesn't seem to know …

linux-kernel linux-device-driver firmware
kvm: module verification failed: signature and/or required key missing - tainting kernel

I'm using Ubuntu 14.04 LTS and kernel version 3.13.11.4. I'm trying to load patched KVM modules kvm and kvm-intel and I'm getting …

c linux linux-kernel kernel-module kvm
Linux Kernel: System call hooking example

I'm trying to write some simple test code as a demonstration of hooking the system call table. "sys_call_table" …

c linux-kernel hook
Why is Linux called a monolithic kernel?

I read that Linux is a monolithic kernel. Does monolithic kernel mean compiling and linking the complete kernel code into …

architecture operating-system linux-kernel