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 to sleep in the Linux kernel?

Can I use the msleep() function to sleep for a specified amount of time in kernel space? If so, which …

c linux linux-kernel sleep
How to create a device node from the init_module code of a Linux kernel module?

I am writing a module for the linux kernel and I want to create some device nodes in the init …

linux linux-kernel mknod
insmod error: inserting './hello.ko': -1 Invalid module format"

I have just made my first driver module, the hello world module following LDD3. However unfortunately encountered this error: insmod: …

linux linux-kernel linux-device-driver embedded-linux kernel-module
If threads share the same PID, how can they be identified?

I have a query related to the implementation of threads in Linux. Linux does not have an explicit thread support. …

multithreading linux-kernel pid
What's the use of do while(0) when we define a macro?

Possible Duplicates: Do-While and if-else statements in C/C++ macros do { … } while (0) — what is it good for? I'm reading the …

c macros linux-kernel
Linux SCHED_OTHER, SCHED_FIFO and SCHED_RR - differences

Can someone explain the differences between SCHED_OTHER, SCHED_FIFO and SCHED_RR? Thanks

linux linux-kernel scheduler scheduling cfs
What's meaning of "EXPORT_SYMBOL" in Linux kernel code?

from here 48 struct snd_card *snd_cards[SNDRV_CARDS]; 49 EXPORT_SYMBOL(snd_cards); I am not getting whats the meaning …

c linux linux-kernel
How to debug the Linux kernel with GDB and QEMU?

I'm new to kernel development and I would like to know how to run/debug the linux kernel using QEMU …

linux linux-kernel gdb qemu
Getting VBox Guest Addtions for Android x86

I am running Android x86 on VirtualBox, and I want the pointer integration enabled, which needs VirtualBox Guest Additions to …

android linux-kernel virtualbox dynamic-linking android-x86
List all harddrives in a linux system

I'm having problems to detect which one of my block devices is the hard drive. My system has a cd-rom …

linux linux-kernel embedded-linux