Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Browsing all 6333 articles
Browse latest View live
↧

How to replace set_fs(KERNEL_DS) for a kernel 5.10.x module driver version

I've been updating a custom module driver to a 5.10.x linux kernel version. My driver adds a layer over a cdc-acm device. To replicate the behavior the next little driver is used.#include...

View Article


What is the file responsible for packet capture, nating and forwarding in...

I am reading the source code of Linux kernel in openwrt trying to figure out how the Linux kernel catch the network packets, sends the packets, NATING , forwarding I can only see the flow of network...

View Article


Image may be NSFW.
Clik here to view.

how to run an iso in virtualbox. it says "FATAL: No bootable medium found!...

i've made an iso file.OS.iso /. /boot /grub grub.cfg OS.bini've made a virtualbox VMhere are the storage optionsbut saysFATAL: No bootable medium found! System halted.how to fix?

View Article

Change MINIX scaling policy from Priority with FCFS to Priority with SJF

I would like to change the MINIX scaling policy from Priority with FCFS to Priority with SJF in the proc.c and proc.h files but I have no idea where to start.Can anybody help me?

View Article

How do you get the size of a file in the linux kernel?

I found this link (http://www.spinics.net/lists/newbies/msg41016.html) and have been looking into doing just that. So I wrote code in a kernel module:#include <linux/path.h>#include...

View Article


Getting location of psychical address via virtual address

I am using kernel debugger to and wanted to know the page frame in psychical ram of virtual address.for example I have the following 0xfffff12345678911(just example).I have executed the following...

View Article

When is the user process's page table first updated during the program start...

I am recently studying Linux kernel and I have a question regarding how user process's page table is first updated by the kernel. Let's consider X86 architecture as an example.When a binary is first...

View Article

Buildroot: How to avoid "-dirty" in your configuration file?

I am new to Buildroot and I am just experimenting with the make, make menuconfig, and make clean commands. I noticed that oftentimes, -dirty will be present at the top of my .config file after changes...

View Article


Image may be NSFW.
Clik here to view.

what is this mysterious character in kernel main function? How can i remove it?

I am trying to create my own kernel following the link https://wiki.osdev.org/Bare_Bonesthe author has mentioned that " followed by some mysterious character. "Why is this character occurring? How can...

View Article


Can single pipe be connected and read by multiple processes

From my understanding, C pipes are like a special kind of file, where internally, the kernal keep tracks of the openings and closings from each process in a table. see the post hereSo in that sense:Is...

View Article

Does a python exception generate a software trap/interrupt?

Assuing i have some simple error throwing Python code in an interrupter such as:>>> x = 5/0Traceback (most recent call last): File "<stdin>", line 1, in <module>ZeroDivisionError:...

View Article

Python could not load module in the same directory

I'm trying to import a module (test) in the Jupiter notebook. The working directory is "gnn". The "test" folder containing .py files is right under the working directory "gnn". I could successfully...

View Article

How to read files in linux kernel after 5.10+

Sorry I'm a beginner,this question is stupid.My linux kernel is "5.11.0-36-generic".I want to read parameter from a file named "myTest.txt".after make,terminal says:error: implicit declaration of...

View Article


Kernel panic after switching to mode "Suspend-to-RAM"

I'm using the imx8qmmek board with Android. I switched the system to the "suspend-to-RAM" mode. The system was slept. But in some minutes it wakes up and throws "kernel panic". I suppose that the root...

View Article

Does Linux support 2MB pages at compile time?

I know processors these days, some of them, support 2MB and 1GB page sizes. Is it possible to compile the Linux kernel to natively support 2MB as opposed to the standard 4Kb page?Thanks.

View Article


How to install USBIP in Docker Container

I want to use USBIP in an Ubuntu 20.04 Docker Container. I tried installing the "linux-tools-generic" Package, but when i run USBIP afterwards i get the message:You may need to install the following...

View Article

How to load image from disk to vmem

I am writing an OS in fasm assembly and I faced with problem. I was trying to draw font pixel-by-pixel, but it is too hard and strange. I want to make bitmap pixel-by-pixel font and save it on hdd, and...

View Article


Linux modules version error "Invalid module format"

I made Linux external module and because my module need Linux kernel symbol,I set the Modversion config and make it.(also did make modules_install)My module was made exactly in lib/modules/(my...

View Article

Why using a uImage instead of a zImage

I'am trying to learn the difference between a zImage and a uImage.In my understanding uImage is got by running mkimage on the Image and as a result it adds a U-Boot wrapper (i don't know what it...

View Article

Timeout waiting for kernel_info_reply at restarting kernel

Good afternoon!I just started using jupyter notebook today and weirdly get the error "Timeout waiting for kernel_info_reply" very irregularly when I try to restart the kernel. I installed it over and...

View Article
Browsing all 6333 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>