How to make use of Rust functions/structs in...
I am working on a Rust LKM. My kernel is Rust enabled and the Rust tool-chain is in working order. There are functions and structs from the net framework that I need to make use of in...
View ArticleSimple Kernel Module for USB
I am trying to get familiar with Linux Kernel Module. So I have written this simplest module which works on USB. The module is being loaded. Also on dmesg I can see this : [27245.911387] usbcore:...
View ArticleIs it safe to directly dereference mmap'ed I/O memory in userspace (e.g., via...
I have a question regarding memory-mapped I/O access in Linux, particularly in the context of device drivers and userspace frameworks like UIO.When writing a Linux kernel device driver (especially on...
View ArticleLinux kernel source not configured - missing > version.h. when intall a driver
I'm trying to install a intel e1000 ethernet card driver on ubuntu 12.04 LTS.When i type make installThe following error occur:Makefile:111: * Linux kernel source not configured - missing version.h....
View ArticleHow to destroy kmalloc allocated objects Hashtable in Linux kernel
I use the linux kernel hashtable to store process names and I use kmalooc to allocate individual nodes and char pointers. But how do I destroy all the individual objects in the module...
View Articlevirtual memory and paging
I'm trying to implement paging on x86, these are the core functions I'm using// maps new allocated page table to a kernel virtual address range ;void k_map_pt_page(pde_t *pd,uint32_t va){ uint32_t...
View ArticleModify Linux kernel config file
How do I modify .config file in linux kernel?When I type make device_defconfig a .config file is in created in the kernel directory. But when I type make menuconfig the .config file is modified. I...
View ArticleBisection ends with git telling me the merge base is bad – how can I progress...
I'm experiencing a problem with the mainline Linux kernel and I want to find the commit which introduced the bug with git-bisect to notify the author that his change introduced a bug.I spotted a good...
View ArticleHow to write userspace or kernel application that would allow me to generate...
I am studying a performance (progress guarantee?) problem of an x86 hypervisor software. The current hypothesis is like this. There is a high intensity of interrupt requests caused by concurrently...
View ArticleKernel panic - not syncing:Attempted to kill init
I'm using the buildroot version-20011.02 for kernel, toolchain and filesystem.My customized board ARMV7 cortexA9 SoC.Kernel version is 3.18.41.Build the kernel(uImage), Buildroot toolchain,...
View ArticleHow to find the CPU consumption for each process in Linux using Rust
I am aware of /proc/{PID}/status and other things from the /proc directory. I am trying get this for my project which is programmed in Rust. As the std::process module doesn't have any in-built...
View ArticleHow to change PAGESIZE in linux kernel
I want to change PAGE_SIZE from 4096 for the experiment. So I changed the value of PAGE_SHIFT in /arch/x86/include/asm/page_types.h. But I can't compile it.In file included from...
View ArticleBeagleBone Black Rev D does not show up as Mass storage in Windows 11 [closed]
I am just starting to learn how to use BBB rev D and the instruction manuals and the BeagleBone Getting Started actual states that it is accessible as a Mass Storage but I don't see anything like that...
View ArticleIsolcores being run at min_freq and not respecting the cpupower config? [closed]
So I have 2 Rocky 10.1 machines. One with Xeon CPU E5-2643 v3 @ 3.4GHz and one with Xeon CPU E5-2678 v3 @ 2.5GHz. Hyperthreading is disabled.Both kernels are given 2-8 isolcores.Both are requested to...
View ArticleWhy is atomicity needed for the variable counter in this Linux kernel module...
I'm reading this example Linux kernel module from a tutorial, and I do not understand (in this line) why the variable count in struct task_info needs to be atomic_t. The module has a module_init...
View ArticleBuilt-in Shift keys produce no evdev events on Lenovo IdeaPad 330-15IKB...
I have a Lenovo IdeaPad 330-15IKB (Type 81DE) and both physical Shift keys on the built-in keyboard stopped working after installing Ubuntu.The important point is that this does not appear to be an...
View ArticleHow to get to know CPU consumption for each process in Linux
I am aware of /proc/{PID}/status and other things from /proc directory. I am trying get this for my project which is programmed in rust. As std::process module doesn't have any inbuilt functions for...
View Articleiproute2 commands for MPLS configuration
Trying to figure out how one can use iproute2 to manage static label-switched MPLS routes in Linux kernel 4.1. I am aware iproute2 support for MPLS might be incomplete right now [2]. Can anyone please...
View ArticleLinux OOM Killer and Java Process
I am often facing issue in our production environment of the Tomcat process getting killed by Linux OOM.Checking /var/log/messages it says java not tainted and java invoked OOM killer.-Xms20480m...
View ArticleDoes the Linux kernel interrupt any running code to call the __exit function...
I have a cleanup function that I call in my code. The __exit function also goes through the same routine, but we will have a global flag for that to not run it twice. My question is, if my cleanup...
View Article