"Activate" python environment should activate the kernel in that environment,...
If I create a conda environment using py 3.5 and then activate that environment, why does conda perceive that I am using python 3.8 for package installation purposes? Is there way to activate the...
View ArticleHow to prevent Yocto project BadValue error?
After running source oe-init-build-env in poky (Git of yocto), I run bitbake and I compile, everything is running smoothly. After I do source oe-init-build-env, I move into the right folder path and I...
View ArticleLinux Kernel Module displays "Killed" when inserting using insmod
I'm trying to insert my kernel module into my system but the terminal just returns "Killed". Does anyone know that causes this? I was thinking I need to use the list_entry() macro inside...
View Articlehow does the TLB ASID checked?
I know there is a ASID field in each TLB entry. What I wanna know is when process decide to visit some address, how does the TLB ASID matching thing happened. An ASID related to a process is...
View ArticleCreating a new directory in /dev using udev rule
This is the code snippet responsible for creating the device:master_dev = device_create(dev_cl, NULL, MKDEV(major, minor), NULL, "synchmess");My udev rule is the following:KERNEL=="synchmess",...
View ArticleWhat makes having an array of pointers to page table entries better than...
Here in this lecture, some extreme implementations of a page table are discussed as well as some reasonable ones.One of the extreme cases was to allocate a flat array that maps every possible virtual...
View ArticleLinux Kernel Module skipping over loop?
I have this chunk of code for a linux kernel module:#include <linux/module.h> #include <linux/kernel.h> #include <linux/sched.h> #include <linux/init_task.h>#include...
View ArticleWhere are environment variables of a process is stored in linux?
I have made a simple C program like:int main(int ac, char **av){ char *str; int i = 1; char *ptr = "Sample string"; // Stored in Data segment if (ac == 2) { str = malloc(len(av[1]) + 1); strcpy(str,...
View ArticleWhat should be the difference in block versus interleaved partitioning...
recently I am exploring parallel programming in CUDA basing on the book "Programming Massively Parallel Processors: A Hands-on Approach".Chapter 9 describes histogram pattern and introduces block and...
View Articlehow does the processor know an instruction is making a system call
system call -- It is an instruction that generates an interrupt that causes OS to gain control of processor.so if a running process issue a system call (e.g. create/terminate/read/write etc), a...
View Articletaskgated not restarting on mac catalina
I need gdb for a school assignment and have been trying to install it on my mac catalina. I've followed instructions from guides on creating a certificate and code signing it etc, but I still get an...
View ArticleCant connect to IPython Kernel while using visual studio code on mac
I Installed the latest version of python and installed the microsoft python extension in virtual studio code. I can create a python file but as soon as I try to start a Jupyter Notebook it says i can't...
View ArticlePatching error for linux_kernel in Yocto?
I am trying to add the patch in linux-kernel.what i have done is..bitbake linux-<recipe> -c devshellchanged the drv.c fileand thengit initand make a dummy commit that will stage all untracked or...
View ArticleHow Linux Kernel manage page allocation and the user/kernel memory space?
I am studying linux kernel, especially in memory management and I have some questions.Now, I got to know that mem_map[] contains all the struct page objects. So here comes my first question :1. If I...
View ArticleXFS I/O Error Detected. Shutting down filesystem because Internal error...
I have a problem in my xfs disks and goes to shoutdown. i have a lot free inodes but this error like it cannot free inode.kernel logs:XFS (sdc): Internal error XFS_WANT_CORRUPTED_GOTO at line 3156 of...
View ArticleHow to use Windows kernel driver to read info from other devices/drivers?
So I have a PCIe kmd driver and I want to be able to read say HW_ID from my mouse or keyboard or even another PCIe device. I have gotten to the point where I have the following:PWSTR...
View ArticleLinux Webcam Video Streaming: OV534 and V4L2 Videobuf API
So I am working with a PlayStation Eye webcam on an embedded system (Cyclone V SoC). The webcam has V4L2 support built on top of this...
View ArticleHow will 64 bit variable be referenced in a 32 bit process?
I have a 64 bit kernel and i run 32 bit processes in userland.In the user process code ,if i declare a 64 bit variable ,how will it be referred.Will it incur 2 memory reads.?basically the scenario is:I...
View ArticleUnable to debug custom kernel module Linux
I built (with debugging options,gdb support and disabled security options) linux kernel 4.9.x from source and used buildroot for file system with busybox. I managed to get the vm running on qemu. Then...
View ArticleLinker Complains Undefined Reference Under MINIX3.2.1
As you may imagine, it's a homework of Operating Systems and I'm asked to add function key Shift+F7 to show the number of running process.I read the source code of command ps on GitHub (MINIX version...
View Article