Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Browsing all 6333 articles
Browse latest View live
↧

Kernel preemption: is it supported by all main OSs?

I have discovered in the last few days what is kernel preemption and that this feature is supported by Linux based OSs (source).However, what about the other most used OSs, like Windows, macOS,...

View Article


How to use(or find or modprobe) .ko in modules.builtin

I tried to built-in(or modules) in new kernel(used arm-none-linux-gnueabi- and got a new baby zImage & Image),then i flashed new kernel to ARM Board. But nothing did happen. The wierd thing is that...

View Article


Can two Linux kernel timer handlers get executed at the same time?

I am writing a kernel module with timers as below,timer1_callback(){ // task of timer1}timer0_callback(){ while(1){ // Do some input processing if (condition){ Update timer1 to fire in 15 seconds from...

View Article

how to find the right vm_area_struct from a mm_strucnt and a buffer

so in the mm_strucnt there is list of vm_areas ,struct vm_area_struct *mmap_cache; and I want to find the one that contain my buffer for example function that would get sturc_mm and would return the...

View Article

How to get "sum" of parallel arrays in cuda?

my problem is about getting "sum" for some same length arrays. For example,I have a M*N(100 * 2000) length float array in all. I would like to get M(100) sum values of every N(2000) float numbers. I...

View Article


How do I get the children PID by a system call?

I compiled and install a new version of the kernel and now I have to make the new kernel support two new primitives, I explain more belowI have this file, mysystemcalls-test.c where I get the process...

View Article

What is the difference of overlayfs and bind mount? [closed]

Here is my understanding:Bind mount only keeps files from upper fs accessible. No files from lower fs under target path would be accessible.Overlayfs also keeps the files of lower fs that does not...

View Article

Block RPC call in windows kernel

I need to write c++kernel code to monitor or block RPC based on client's and server's process ID.After searching it seems RpcBindingCreateW is a good point to start! But I haven't found a corresponding...

View Article


How to debug the below DPC++ program with the kernel offloaded to the GPU?

I want to run a DPC++ program in Intel GNU Project Debugger. I have downloaded the Intel GDB from Intel OneAPI Basekit. It comes preinstalled with OneAPI Basekit.The link to download is...

View Article


File descriptor -2 error after trying to write [closed]

I am trying to write a file with sys_write() from inside the kernel but every time the file descriptor value is -2.I have tried many different paths for the file but every single one of them failed.Any...

View Article

Android: How can I get device hardware information with adb command?

I would like to know how to retrieve specific hardware information, for example, from the camera, using an adb command. I would like to know if its possible to retrieve hardware ID or Physical device...

View Article

Suddenly appearing in EL2 without any exception in armv8

New to armv8 kernel development, and i'm finding some weird jumps between execution levels. Developing on qemu currently, and this is the weird thing i was talking about:Exception return from AArch64...

View Article

Why setns mount does not work with multithreaded processes?

I am currently looking for an answer, why setns() into mount namespace does not work for multithreaded processes. I understand why setns() does not allow for user namespaces, and that is clearly noted...

View Article


which kernel config to turn from module to build-in on ubuntu-mate 20.04.2 LTS

I have Ubuntu 20.04.2 LTS where i want to run my own kernel, so I did :make -j 3 allmodconfigmake -j 3 bzImagemake -j 3 modulessudo make -j 3 modules_installsudo make installin recovery mode, the...

View Article

Jupyter/IPython won't execute with statement unless kernel is terminated

I'm trying to set up a microscope control script using Pycro-Manager, which is a Python wrapper for Micro-Manager:from pycromanager import Acquisition, multi_d_acquisition_eventswith...

View Article


how does the jupyter notebook runs the python in browser the process runs...

recently i was asked for a R&D process which was about researching about how the jupyter notebook runs and what things runs behind the scenes and i achieved to find some solutions but the major...

View Article

Are there any other kernel compiling programs except cosmos? [closed]

I don't know if this is the right place to ask this question, but I would like to build my very own kernel from scratch without cosmos. Is there any other kernel compiling software out there?Really...

View Article


How do i add Keyboard Driver Input to my C++ OS Kernel? [closed]

this is my kernel.cpp#include "core.h"extern "C"{ void kernel(void) { initialize(); print(" ____ _ \n"); print("| _ \\ (_) \n"); print("| |_) | __ _ ___ _ ___ \n"); print("| _ < / _` / __| |/...

View Article

Why RCU is designed to protect pointer assignment?

I am wondering Why RCU is designed to protect pointer assignment and access. If the rcu_read_lock is used to protect to normal varliable access, what will happen?

View Article

Is there a way to execute a file/folder in a folder while I cd into it in the...

Is there a way to execute a file while i'm in cd in the kernel. I am using Unix based systems (Arch, Manjaro, MacOSX, etc). I am trying to get htop for macOSX Big Sur, and I wrote cd...

View Article
Browsing all 6333 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>