Questions tagged [kernel]

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system. This tag is for general questions regarding code that runs in the context of an operating system kernel.

This tag is for general questions regarding code that runs in the context of an operating system kernel (kernelspace, as opposed to userspace), including writing custom kernels. Questions about specific kernels should use a relevant tag (eg. , , ).

This tag is not about other uses of the word "kernel" - for example, questions about CUDA kernels should use the tag.

SOURCE

Wikipedia

9344 questions
39
votes
1 answer

How / Where to find Linux Kernel Bugs to Fix?

I'm trying to find bugs that needs to be fixed in the Linux Kernel but I don't know where to look. I watched the video "How to Submit Your First Linux Kernel Patch" by Greg Kroah-Hartman on Youtube, but he doesn't really mention where to find bugs…
GHe
  • 499
  • 1
  • 4
  • 10
39
votes
12 answers

What parts of Linux kernel can I read for fun?

Programming isn't my main job, though I enjoy it and sometimes get paid for it. For many years now I've been hearing about Linux and my friends have shown to me many *nixes (or *nici?), though I stick with Mac OS. Do you think there are any parts of…
ilya n.
  • 18,398
  • 15
  • 71
  • 89
38
votes
2 answers

Does linux schedule a process or a thread?

After reading this SO question I got a few doubts. Please help in understanding. Scheduling involves deciding when to run a process and for what quantum of time. Does linux kernel schedule a thread or a process? As process and thread are not…
prasannatsm
  • 900
  • 1
  • 11
  • 19
38
votes
10 answers

When should I write a Linux kernel module?

Some people want to move code from user space to kernel space in Linux for some reason. A lot of times the reason seems to be that the code should have particularly high priority or simply "kernel space is faster". This seems strange to me. When…
Jordfräs
  • 8,903
  • 3
  • 27
  • 30
37
votes
6 answers

Learning kernel hacking and embedded development at home?

I was always attracted to the world of kernel hacking and embedded systems. Has anyone got good tutorials (+easily available hardware) on starting to mess with such stuff? Something like kits for writing drivers etc, which come with good…
abyx
  • 69,862
  • 18
  • 95
  • 117
37
votes
3 answers

How can I display the version of my Jupyter notebook and run cells in Jupyter notebooks? I get an error: bad interpreter

I have installed Anaconda and I use the conda environments and the conda command to install software. When I type: jupyter notebook --version I get the following error: zsh: /Users/cr517/.local/bin/jupyter: bad interpreter:…
charlesdarwin
  • 717
  • 1
  • 9
  • 16
36
votes
3 answers

why is u8 u16 u32 u64 used instead of unsigned int in kernel programming

I see u8 u16 u32 u64 data types being used in kernel code. And I am wondering why is there need to use u8 or u16 or u32 or u64 and not unsigned int?
user966588
36
votes
2 answers

What changes in a jailbroken kernel?

Having seen this question on protecting your app from being cracked, I saw that the top answerer mentioned something about being able to see if a device was jailbroken by some internal imbalance in the kernel. Having looked into it a bit more, I…
CodaFi
  • 43,043
  • 8
  • 107
  • 153
35
votes
10 answers

How to speed up Linux kernel compilation?

I have core i5 with 8gb RAM. I have VMware workstation 10.0.1 installed on my machine. I have fedora 20 Desktop Edition installed on VMware as guest OS. I am working on Linux kernel source code v 3.14.1. I am developing an I/O scheduler for Linux…
momersaleem
  • 451
  • 1
  • 4
  • 7
35
votes
1 answer

What is the meaning of question marks '?' in Linux kernel panic call traces?

The Call Trace contains entries like that: [] FunctionName+0xAB/0xCD [module_name] [] ? AnotherFunctionName+0x12/0x40 [module_name] [] ClearFunctionName+0x88/0x88 [module_name] What is the meaning of the '?' mark…
qdot
  • 6,195
  • 5
  • 44
  • 95
35
votes
3 answers

What is the "current" in Linux kernel source?

I'm studying about Linux kernel and I have a problem. I see many Linux kernel source files have current->files. So what is the current? struct file *fget(unsigned int fd) { struct file *file; struct files_struct *files = current->files; …
Kahn Cse
  • 397
  • 2
  • 5
  • 10
34
votes
3 answers

Memory mapped IO - how is it done?

I've read about the difference between port mapped IO and memory mapped IO, but I can't figure out how memory mapped Io is implemented in modern operating systems (windows or linux) What I know is that a part of the physical memory is reserved to…
paulAl
  • 949
  • 2
  • 10
  • 17
32
votes
3 answers

Is it possible that linux file descriptor 0 1 2 not for stdin, stdout and stderr?

When a program begins, does it take file descriptors 0, 1 and 2 for stdin, stdout and stderr by default?. And will API calls such as open(...), socket(...) not return 0, 1 and 2 since these values are already taken?. Is there any case in which…
AllenHu
  • 561
  • 2
  • 5
  • 13
32
votes
1 answer

How does kernel know, which pages in the virtual address space correspond to a swapped out physical page frame?

Consider the following situation: the kernel has exhausted the physical RAM and needs to swap out a page. It picks least recently used page frame and wants to swap its contents out to the disk and allocate that frame to another process. What…
Boris Burkov
  • 13,420
  • 17
  • 74
  • 109
31
votes
6 answers

kernel keeps dying in jupyter notebook

Whenever I start jupyter notebook and create a new python 3 notebook I get an error message saying kernel has died. I have tried deleting and installing ipython, python3.6.5, and jupyter notebook but I still get the error message. My cmd screen is…
Subrat Katiyar
  • 311
  • 1
  • 3
  • 5