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
3
votes
3 answers

Jupyter Lab and Notebook Problem: Kernel Error

It appears that somehow one of my kernels is deleted. And perhaps that's why I am getting this error. How could I possibly fix it? Can I reinstall something (the kernel in the base environment perhaps)? If no better option is available, I would try…
CypherX
  • 7,019
  • 3
  • 25
  • 37
3
votes
1 answer

How to change mouse settings programmatically in macOS using IOKit

The functions IOHIDGetAccelerationWithKey and IOHIDSetAccelerationWithKey are deprecated since macOS 10.12, therefore I am trying to implement the same using other IO*-methods. I have never worked with IOKit, thus, all I can do is google for…
user826955
  • 3,137
  • 2
  • 30
  • 71
3
votes
1 answer

Kernel dies when running .detector (openCV)

I'm currently working on an openCV course through Udemy and have run into the trouble where my kernel is dying. I tried eliminating line by line to see what could the cause, and I found that when the code comes to the line: keypoints =…
3
votes
2 answers

When does copy_from/to_user returns a non-zero value

I read the source code of copy_from/to_user functions. It seems that they always return 0. static inline int copy_from_user(void *to, const void __user volatile *from, unsigned long n) { __chk_user_ptr(from, n); …
q2ven
  • 187
  • 9
3
votes
1 answer

Is setPowerState always called after start?

I'm developing a kernel driver for a USB device on OS X. After adding the setPowerState handler, I'm noticing that it's called for a wake event immediately after the start method is called. This happens on OS X 10.6 when I load the driver, and…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
3
votes
1 answer

Where in the linux kernel does "mmap" looks at the file inode to see if it's already loaded?

I want to kprobe the function that maps new files onto the memory, but i'm having difficulty finding the function that checks if the file descriptor is already loaded. I tried hooking the mmap syscall but that's not really helping because I get…
lys
  • 53
  • 1
  • 6
3
votes
2 answers

How to change the foreground color of a string (32 Bit Assembly kernel)?

I am currently programming my own operating system (just for fun, I am 16) and have a problem with the outprint function i have crated. I want to change the text color (not the background color) but it won't work. I have crated my own printf…
RAVN Mateus
  • 560
  • 3
  • 13
3
votes
1 answer

Error trying to run Rmd file on Kaggle Kernel

This is the first time I try to create something on a Kaggle Kernel. I know Rmd files are special as they have regular text and code on them. I read that I can't use the usual blue arrow to run the code on the Kernel because it will also try to run…
3
votes
1 answer

Difference between runtime and kernel?

I'm reading this docker tutorial: It’s important to note that Docker containers don’t run in their own virtual machines, but share a Linux kernel. Compared to virtual machines, containers use less memory and less CPU. However, a Linux runtime is…
Jwan622
  • 11,015
  • 21
  • 88
  • 181
3
votes
0 answers

FAILED: TARGET_KERNEL_BINARIES

I'm building an AEX Oreo ROM. Here are the repositories I cloned https://github.com/kegang0619?tab=repositories Device tree =…
3
votes
1 answer

Driver Development (Windows) : What is RTL?

Can someone explain me please what is RTL in the context of driver development for Windows ? Development Tool : Visual studio 2019 Driver Type: Kernel Mode (kmdf). Programming Language : C.
ST0x
  • 53
  • 8
3
votes
1 answer

Undefined Instruction exception in ARM code

I'm doing bare-metal programming (I'm developing a kernel) on an ARM-Cortex A53, SoC BCM2837 (Raspberry PI 3 in other words). I'm actually writing the piece of software responsable to handle the mini UART (a sort of hello world, as reported on OsDev…
AlePalu
  • 73
  • 1
  • 8
3
votes
1 answer

Windows 7 driver hooking

My question is regarding driver development for Windows 7. I need to intercept system calls to a driver. Theoretically in such cases it's recommended to create a filter driver, however in my case the driver doesn't expose a filter-compatible…
valdo
  • 12,632
  • 2
  • 37
  • 67
3
votes
1 answer

media-ctl IPU binding : Unable to setup link

I am trying to run the lastest mainline kernel (5.1.1) on a imx6 var dart. The goal is to get video from parallel IPU (adv7180) and send it over network. With the 5.0 release I used theses commands to bind the adv7180 : media-ctl --reset media-ctl…
rBeal
  • 167
  • 2
  • 11
3
votes
1 answer

uma_zalloc and uma_zfree are thread safe in freebsd kernel space?

I have two threads which in both of them I use uma_zalloc() and uma_zfree() functions for the one variable of uma_zone_t. I want to know uma_zone_t is thread safe or not?