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
22
votes
1 answer

Android: Create new System Permission in through AOSP source code.

I was wondering how one can edit Android OS source code to impose a new permission. For example like we have BLUETOOTH permission, if the device offers a new sensor, then how appropriate permission can be created in order for applications to use the…
21
votes
3 answers

Is there a lot of Plan 9 development?

It seems that the biggest contributors of Plan 9 are no longer in the project and it does not seem that there is a big development. There is 9fans, a mailing list for Plan 9 users, and once a year they usually do a meeting, but I have been surfing…
icedgoal
  • 646
  • 6
  • 17
21
votes
2 answers

How to let kernel choose a port number in the range (1024,5000) in TCP socket programming

When I run the following code: struct sockaddr_in sin; int addrlen; addrlen=sizeof(sin); memset(&sin, 0, sizeof(sin)); sin.sin_family = AF_INET; sin.sin_addr.s_addr=inet_addr("123.456.789.112"); sin.sin_port=htons(0); // so that the…
Anonymous
  • 4,133
  • 10
  • 31
  • 38
21
votes
2 answers

Walking page tables of a process in Linux

i'm trying to navigate the page tables for a process in linux. In a kernel module i realized the following function: static struct page *walk_page_table(unsigned long addr) { pgd_t *pgd; pte_t *ptep, pte; pud_t *pud; pmd_t *pmd; …
MirkoBanchi
  • 2,173
  • 5
  • 35
  • 52
21
votes
5 answers

Designing a Kernel for a support vector machine (XOR)

The meat of my question is "how does one design a kernel function for a learning problem?" As a quick background, I'm reading books on support vector machines and kernel machines, and everywhere I look authors give examples of kernels (polynomial…
JeremyKun
  • 2,987
  • 2
  • 24
  • 44
21
votes
4 answers

Why does jupyter display "None not found"?

I am trying to use jupyter to write and edit python code. I have a .ipynb file open, but I see "None not found" in the upper right hand corner and I can't execute any of the code that I write. What's so bizarre is that I'll open other .ipynb files…
DataOrc
  • 769
  • 2
  • 8
  • 18
21
votes
3 answers

What does "soft/hard nofile" mean on Linux

When I tried to install a software on RedHat EL5, I got the error that the expected value of soft/hard nofile is 4096 while the default is 1024. I managed to increase the number, but I don't know what the parameters are. Are they refering to soft…
Frank Fu
  • 778
  • 4
  • 8
  • 12
21
votes
2 answers

How do interrupts in multicore/multicpu machines work?

I recently started diving into low level OS programming. I am (very slowly) currently working through two older books, XINU and Build Your Own 32 Bit OS, as well as some resources suggested by the fine SO folks in my previous question, How to get…
Giovanni Galbo
  • 12,963
  • 13
  • 59
  • 78
21
votes
13 answers

Overriding functionality with modules in Linux kernel

Without getting into the details of why, I'm looking for a clean (as possible) way to replace kernel functions and system calls from a loadable module. My initial idea was to write some code to override some functions, which would take the original…
Dan Fego
  • 13,644
  • 6
  • 48
  • 59
21
votes
2 answers

How to add a new device in QEMU source code?

What could be the step wise approach to emulate/add a new device in qemu using QOM approach? What and where could be the changes with respect to DeviceState/BusState and other properties?
San
  • 905
  • 3
  • 16
  • 33
21
votes
2 answers

New to Linux Kernel/Driver development

Recently, i began developing a driver of an embedded device running linux. Until now i have only read about linux internals. Having no prior experience in driver devlopment, i am finding it a tad difficult to land my first step. I have downloaded…
TheCodeArtist
  • 21,479
  • 4
  • 69
  • 130
21
votes
2 answers

How to begin with Windows Kernel Programming?

I am an application developer mostly work in C#. I have some knowledge of C/C++. I am very much fascinated and interested in windows Kernel Development. I Sketched out a layout to learn this. 1. Understand Windows internals(By books) 2. Try Simple…
Srikanth P Vasist
  • 1,327
  • 2
  • 14
  • 26
21
votes
5 answers

Current Linux Kernel debugging techniques

A linux machine freezes few hours after booting and running software (including custom drivers). I'm looking a method to debug such problem. Recently, there has been significant progress in Linux Kernel debugging techniques, hasn't it? I kindly ask…
ctinnist
  • 339
  • 2
  • 7
21
votes
1 answer

What is path //, how is it different from /

We know root directory is /, and according to posix, there is another directory // which differs from /. When you ls / and ls //, the output is the same, so as stat, however if you cd / and cd //, they are different, though the directory content are…
dspjm
  • 5,473
  • 6
  • 41
  • 62
21
votes
1 answer

How to interpret addresses in a kernel oops

I have a kernel oops in a linux device driver I wrote. I want to determine which line is responsible for the oops. I have the following output, but I do not know how to interpret it. Does it mean my code crashed at the instruction at write_func +…
Hans Then
  • 10,935
  • 3
  • 32
  • 51