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
26
votes
8 answers

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders for a long time. For example when deleting a file, the file may remain locked for 1 minute or more and only after that be deleted. On another occasions I encountered files…
Dani
  • 461
  • 2
  • 5
  • 7
26
votes
2 answers

Plotting 2D Kernel Density Estimation with Python

I would like to plot a 2D kernel density estimation. I find the seaborn package very useful here. However, after searching for a long time, I couldn't figure out how to make the y-axis and x-axis non-transparent. Also, how to show the values of the…
user3698176
  • 755
  • 2
  • 7
  • 9
26
votes
1 answer

Poorly-balanced socket accepts with Linux 3.2 kernel vs 2.6 kernel

I am running a fairly large-scale Node.js 0.8.8 app using Cluster with 16 worker processes on a 16-processor box with hyperthreading (so 32 logical cores). We are finding that since moving to the Linux 3.2.0 kernel (from 2.6.32), the balancing of…
Brett
  • 3,478
  • 1
  • 22
  • 23
25
votes
2 answers

Understanding loff_t *offp for file_operations

I'm designing a device driver that simply reads and writes to a character buffer. My question is however regarding the two functions in the file_operations structure read and write. I don't truly understand what loff_t *offp really is. I know that…
Dr.Knowitall
  • 10,080
  • 23
  • 82
  • 133
25
votes
4 answers

real time scheduling in Linux

This morning I read about Linux real time scheduling. As per the book 'Linux system programming by Robert Love', there are two main scheduling there. One is SCHED_FIFO, fifo and the second is SCHED_RR, the round robin. And I understood how a fifo…
theB
  • 2,048
  • 2
  • 20
  • 29
25
votes
4 answers

Why is linux kernel coded using non-standard C (gcc specific features)?

Linux kernel code uses "statement-expression" and typeof extension that makes it only compilable under gcc. More I think about it, more it doesn't make sense. It defeats the purpose of portability and standard C. (now linux kernel code needs a…
SHH
  • 3,226
  • 1
  • 28
  • 41
25
votes
2 answers

How to write drivers for Android?

I have been trying to know about android driver development. I know driver development is not an easy job but I'd like to learn. Is there any tutorials for that or any simple examples??
Ashok Jeev
  • 727
  • 3
  • 11
  • 14
25
votes
6 answers

"FATAL: Module not found error" using modprobe

I have a problem with modprobe command... I compiled the hello world module and loaded it with insmod, it works fine and when I do lsmod, I can see it in the output list. But when I insert this module using modprobe I am getting a FATAL…
Ravi Gupta
  • 6,258
  • 17
  • 56
  • 79
25
votes
2 answers

nested page-faulting of user-space address in Linux

I would like to know if it is functionally wrong to page-fault a user-space address when kernel is running fault-handler to bring in a user-page. OS is Linux 2.6.30 Assume that both user-addresses are valid ( falling within vma , rw permission )…
shankar
  • 251
  • 2
  • 2
25
votes
2 answers

sysconf(_SC_CLK_TCK) what does it return?

I was trying to understand various sysconf macros.I have written a program as below. int main() { fprintf(stdout, "No. of clock ticks per sec : %ld\n",sysconf(_SC_CLK_TCK)); return 0; } I always get the result as 100.I am running it on a…
liv2hak
  • 14,472
  • 53
  • 157
  • 270
25
votes
2 answers

Difference between interrupt and event

What is the difference between interrupt and an event?
srikanth rongali
  • 1,463
  • 4
  • 28
  • 53
25
votes
4 answers

Extending Functionality of Magic Mouse: Do I Need a kext?

I recently purchased a Magic Mouse. It is fantastic and full of potential. Unfortunately, it is seriously hindered by the software support. I want to fix that. I have done quite a lot of research and these are my findings regarding the event chain…
Tyler
  • 1,603
  • 13
  • 21
25
votes
6 answers

building Linux kernel on Mac OS X

I am doing a project to modify the Linux kernel. I have a desktop Linux machine and I have no problem building kernel on it. However, I am going on a trip and I want to work on my way. I only have a MacBook. When I tried to build the Linux kernel,…
Alfred Zhong
  • 6,773
  • 11
  • 47
  • 59
24
votes
5 answers

sys/types.h: No such file or directory

I am trying to compile module but get this error. fatal error: sys/types.h: No such file or directory compilation terminated. Here is my module file headers #include // Macros used to mark up functions e.g. __init…
user3991417
24
votes
2 answers

how to compile opencl project with kernels

I am totally a beginner on opencl, I searched around the internet and found some "helloworld" demos for opencl project. Usually in such sort of minimal project, there is a *.cl file contains some sort of opencl kernels and a *.c file contains the…
wallen
  • 365
  • 1
  • 2
  • 5