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

Measure time in Linux - time vs clock vs getrusage vs clock_gettime vs gettimeofday vs timespec_get?

Among the timing functions, time, clock getrusage, clock_gettime, gettimeofday and timespec_get, I want to understand clearly how they …

c linux time linux-kernel
How to read, understand, analyze, and debug a Linux kernel panic?

Consider the following linux kernel dump stack trace, you can trigger a panic from the kernel source code by calling …

c linux debugging linux-kernel panic
How to use netlink socket to communicate with a kernel module?

I am trying to write a linux kernel module that communicates with user process using netlink. I am using netlink …

c linux-kernel linux-device-driver netlink
Linux: How to find the list of daemon processes and zombie processes

I tried checking on Google, but I couldn't find much information related to the actual question. How do I get …

linux unix linux-kernel admin aix
How to do a TRUE rescan of PCIe bus

I have an FPGA (Like most of the people asking this question) that gets configured after my Linux kernel does …

linux-kernel linux-device-driver pci-e hotplugging
Why is the probe method needed in Linux device drivers in addition to init?

In the linux kernel, what does the probe() method, that the driver provides, do? How different is it from the …

linux operating-system linux-kernel
proc_create() example for kernel module

Can someone give me proc_create() example? Earlier they used create_proc_entry() in the kernel but now they are …

linux-kernel linux-device-driver
How do you swap /dev/sda with /dev/sdb?

Boy, this is such. a. trivial. question, and yet nobody seems to be able to answer it correctly. How do …

linux linux-kernel device
How to avoid transparent_hugepage/defrag warning from mongodb?

I'm receiving the following warning from mongodb about THP 2015-03-06T21:01:15.526-0800 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/…

linux mongodb linux-kernel
How is the Linux kernel tested ?

How do the Linux kernel developers test their code locally and after they have it committed? Do they use some …

linux linux-kernel