Does OpenBSD support parallel Kernel access
I tried to figure out if multiple processes or threads can execute concurrent syscalls, without one of them sleeping.That's to say: Does OpenBSD use something like a Big Kernel Lock...
View ArticleCan forked process call father?
Let's suppose I have a process with pid = 30, I forked it with a child process with pid = 20and made parent wait for the child like this:waitpid(20, nullptr, 0);then I stopped the child process, how...
View ArticleGetting kernel error while trying to open Jupyter notebook or Spyder
While opening Jupyter notebook or Spyder, I am continuously getting 'kernel error' notification. Tried to reinstall anaconda3, ipython, kernel but the issue stays. I had downloaded Python 3.7 in...
View ArticleCalling dll from kernel mode c++ windows
How would I go about calling a dll from kernel mode?I have tried making a custom lib file using multiple techniques but I cannot get anything to work. I have also researched on google but cannot seem...
View ArticleHow can i build android kernel with modern environment
There is a few step which is i followed for compile Android Kernel with Repo and build/build.sh. But i couldnt succeed about get bzImage or zImage to emulate with emulator.repo init -u...
View ArticleKernel get clear while printing the string with escaping 'mr \x0c'
While running the code a = 'Mr. stack\n\x0c'print(a) my kernel is getting clear what does it mean.But if I slice the string like print(a[:-1]) It was working fine. What does the escaping mean?If any...
View Articleobtain a pointer to task_struct of current process without using current
How can I obtain a pointer to task_struct of current process|task without using current in kernel. just by using cpu register.
View ArticleHow to create .img file from kernel?
I made a kernel in C and now, I want to create .img file from my kernel. But I only have the kernel file.I'm running my operating system using this command (KGKernel1 is kernel):qemu-system-i386...
View ArticleHow to troubleshoot an expected CDROM device on custom Linux kernel?
I'm looking for some hints while troubleshooting missing CDROM device.The problem is, missing configuration option for my custom kernel (linux-5.4.78).My current .config...
View ArticleCompile a driver made for a newer linux kernel in an older kernel
There is a panel driver committed in the kernel 5 of linux kernel. I have a kernel 4.4.I tried to copy the .c of the new kernel and paste it in my old kernel. Also the Kconfig and Makefile...
View Articlec function doesnt return after using __asm__ command
Im trying to build an operating system from scratch with a guide, https://github.com/cfenollosa/os-tutorial.ive debugged the project ive made so far ( chapter 16 ) and when i try to run it i encounter...
View ArticleFailing to downgrade my kernel version Ubuntu 20.04
I am trying to downgrade my kernel version, because I am having problems installing AMD-pro GPU drivers.So I am using Ubuntu 20.04 and my kernel is:IN:uname -rOUT:5.4.0-65-genericI need kernel ver...
View ArticleHow to Change Jupyter Notebook Kernel Display Name
May I ask how to change the kernel display name from Python [defaul] to Python 2.7.12 for example?I've been trying to modify the kernel.json file, particularly chaning the "display_name" from Python 2...
View ArticleDifference Linux Kernel 5.10 with / without PREEMPT-RT patch
With the current Version 5.10 of a vanilla linux kernel, one can configure the kernel as a low-latency version as the mainline have accepted multiple merge requests from the Preempt-rt patch team....
View ArticleCopying Memory Pages in SLES Linux is much faster then in Ubuntu
I have two virtual machines running on the exact same Hardware. One of them is SLES12SP5 (Kernel 4.12) (I have similar results with SLES15SP2, but got no at hand at the moment) and one of them is...
View ArticleWhy interrupts not working in this kernel code?
Trying to make interrupts working in 64-bit higher half kernel.github repo:https://github.com/JustVic/kernel_interruptsall interupts code in this three files:trap.h, trap.c, trap.Strap.h:#ifndef...
View ArticleHow to determine the memory address range of Linux-Kernel objects
I want to inspect the memory where the functions from kernel/bpf/verifier.c are loaded into.After compilation to verifier.o the object is linked "into" the kernel. At /proc/kallsyms only non static...
View ArticleYocto multiple Kernel packages
I am trying to build an image which has linux-intel as the the virtual/kernel set. I want to inherit the same kernel recipe as require xxx.bb in my another kernel recipe. Essentially both kernels are...
View ArticleMakefile variables not working as expected
I am trying to compile a program using this makefile:GCCPARAMS = -m32 -fno-use-cxa-atexit -nostdlib -fno-builtin -fno-rtti -fno-exceptions -fno-leading-underscoreASPARAMS = --32objects = src/loader.o...
View Articlelinux kernel - how to get physical address (memory management)?
In linux,Page Global Directory offset address(cr3 + index) can be calculated using pgd_offset() MACRO.Page Upper Directory offset address can be calculated using pud_offset() API.Page Middle Directory...
View Article