Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Browsing index pages (12544 articles)
↧

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 Article


Simple 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 Article


Is 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 Article

Linux 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 Article

How 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 Article


virtual 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 Article

Modify 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 Article

Bisection 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 Article


How 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 Article


Kernel 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 Article

How 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 Article

How 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 Article

BeagleBone 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 Article


Isolcores 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 Article

Why 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 Article


Built-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 Article

How 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 Article


iproute2 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 Article

Linux 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 Article

Does 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
Browsing index pages (12544 articles)


Latest Images