Missing kernel messages
I am trying to debug my kernel module. I thought I would use printk because it already exists. However, bursts of log messages are being lost. /var/log/syslog skips over hundreds of messages.As...
View ArticleHow to solve the problem in jupyter notebook "Fail to start the kernel"
When trying to launch a jupyter notebook using python version 3.7.4 I run into the following error:Failed to start the kernel message is...Traceback (most recent call last): File...
View ArticleDecrypt and understand contents of dump_stack after Linux hangs
Some time ago my linux server (CentOS Linux release 7.4.1708 (Core)) completely hanged. It was unaccessible neither via ssh nor via console. All I could do is to reboot server via reset button. After...
View Articlemmap failure after changing kernel start address
I'm using Linux 32bit v4.1.8 on PowerPC p4080DS CPU and external GPU. Until now with "regular" (some pre-defined settings and device tree) I managed to create a shared memory region between the CPU and...
View Articlelvalue required as left operand of assignment - function pointer
I'm working on homework for kernel programming and memory management classes. I need to dynamically obtain the sys_call_table address and install a simple hook, which calls the original sys_call (in...
View Articleunderstanding kernel boot shell
From my understanding: The first process being execute is the init (with other modern names) process with pid 1. Later on according to the /etc/inittab and all the /rdc. folders' scripts rest of the...
View ArticleRtlCopyMemory never returns, lags out PC
I'm trying to read a char array, then write it to another process in a kernel driver. In order to do so I need to copy the char array that I read from OtherProcess then write it to MyProcess. The issue...
View ArticleDo modern computers boot in real mode or virtual real mode?
So I was reading about the processor modes and came to know that virtual real mode allows a real mode application e.g. DOS application such as BIOS program to run within a protected mode operating...
View ArticleLinux Kernel : IP Identification header generation code in linux kernel...
Hi I am playing with Linux Kernel Source code, I want to know where the IP Identification Header generated in linux source code kernel, and what function or formula to generate it,This IP...
View ArticleWhy isn't ullong a valid kernel module parameter type in Red Hat 7?
I've been dancing around with Intel Non-Transparent Bridge hardware and discovered that the ntb_hw_intel driver is not included in Red Hat 7.From what I can tell, the driver does not build the way it...
View ArticleMultiple Kernels in Python Jupyter Notebook
I currently have Python 3 installed and want to install Python 2.7 as a second kernel in Jupyter notebook. I was able to install Python 2.7, however, when I change kernels in Jupyter notebook, I...
View Articleis there a way to tell the parent thread from current
From the current thread (in kernel) is there a way to tell the actual thread that fork'd it? systemd -> proc1 --fork--> thread2thread2 detaches; thread2's parent set to systemd; thread2's tgid...
View ArticleDynamics AX 2012 Binary-Kernel Wizard install not show mandatory prerequisites
I'm installing Binary Dynamics AX 2012 update, but I cannot to continue, because I need mandatory prerequisites.The wizard not show me which mandatory update are needed. I have this screen: I NEED a...
View ArticleCan a process be swapped out from RAM while holding a lock?
I am trying to understand the working of process context switch and the process swapping mechanism specially when a lock is acquired by the process. Lets assume that a process A has acquired either...
View ArticleWhat is the difference between rel kernel versions of Linux?
I want to know what is the difference between r34-rel, r37-rel, r38-rel, r39-rel and r40-rel in the Linux 4.4 kernel. The official kernel sources are https://github.com/android-linux-stable/msm-4.4....
View Articlelinux device driver file operations: it is possible to have race conditions?
Consider a linux device driver that implements the open(), read(), write(), close(), unlocked_ioctl() and, maybe, mmap().Now, imagine that multiple (or the same) processes open the same device...
View ArticleMatched Filter Gaussian [closed]
As a beginner in Python. It may be good to ask a question to get a possible help. I am trying to find sigma value. I have data (line spread function) that represent intensities in each pixel taken over...
View ArticleGet file name/path from a file descriptor from a Linux kernel module?
In a linux kernel module is there a way to get a file name/path from an unsigned int fd?I'm aware of this answer: How can I get a filename from a file descriptor inside a kernel module? but if I...
View ArticleWriting simple kernel for my Android device
I'm trying to develop a simple toy mobile operating system as a side project.I'm trying to figure out how to boot a simple kernel and print "Hello World" to screen on an Android device.Booting in...
View ArticleConnection ioctl and driver operations
I am trying to understand how driver operations are being called. I know the ioctl system call is used for this, but I am not understanding how one would find out the commands used to end up with a...
View Article