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 do I delete virtual interface in Linux?

ip link shows this: [root@0-25-90-68-79-4a log]# ip link 1: lo: <LOOPBACK,UP,LOWER_UP&…

linux networking linux-kernel virtual-machine ifconfig
IOCTL Linux device driver

Can anyone explain me, What is IOCTL? What is it used for? How can I use it? Why can't I …

linux linux-kernel driver linux-device-driver ioctl
iptables v1.4.14: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)

I'm trying to set iptable rules, and I got following error message when I use iptable : iptables v1.4.14: can't initialize …

linux-kernel debian iptables
Read/write files within a Linux kernel module

I know all the discussions about why one should not read/write files from kernel, instead how to use /proc …

c file-io linux-kernel kernel-module
What is the difference between vmalloc and kmalloc?

I've googled around and found most people advocating the use of kmalloc, as you're guaranteed to get contiguous physical blocks …

c linux-kernel kmalloc vmalloc
Image vs zImage vs uImage

What is the difference between them? I know that u-boot needs a kernel in uImage format. The system I use …

linux-kernel embedded-linux u-boot
Using gdb to single-step assembly code outside specified executable causes error "cannot find bounds of current function"

I'm outside gdb's target executable and I don't even have a stack that corresponds to that target. I want to …

linux assembly gdb x86 linux-kernel
What does "make oldconfig" do exactly in the Linux kernel makefile?

Can anyone explain what the target "oldconfig" does exactly in the Linux kernel makefile? I see it referenced in some …

linux makefile linux-kernel
How can I see which CPU core a thread is running in?

In Linux, supposing a thread's pid is [pid], from the directory /proc/[pid] we can get many useful information. For …

linux linux-kernel scheduled-tasks scheduling scheduler
How to fix: fatal error: openssl/opensslv.h: No such file or directory in RedHat 7

I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but …

module linux-kernel openssl redhat