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

Image may be NSFW.
Clik here to view.

Ubuntu 20.04 does not properly shutdown/reboot [closed]

Not sure why this is happeningTried to update my kernelAdd Nvidia DriverShould I create an executable file everytime it reboot or shutdown?Thanks in advance

View Article


can we install a hypervisor inside a OS created by another hypervisor?

I know title sounds little crazy but I was wondering, if we install KVM on server and create a VPS having a Linux OS then, can we install KVM module in a newly created VPS and again create a VPS inside...

View Article


Is calling spin_lock_irqsave, instead of local_irq_disable followed by...

Consider the following kernel codelocal_irq_disable();__update_rq_clock(rq);spin_lock(&rq->lock);rq is a pointer to a per-processor struct (i.e; not subject to SMP concurrency). Since rq will...

View Article

Using sysfs_notify_dirent() correctly

I've some trouble understanding how to use sysfs_notify_dirent() correctly. Basically, I'm writing a device driver, and I need one of the sysfs attributes exported by the driver to be "pollable" from...

View Article

cross compiling kernel for raspberry pi 4

I am new to linux and I really need your helpI am working on project for my end of studies internship : controlling sensors and displaying the result on an LCD screenfor that I will use raspberry and...

View Article


spin_lock_irqsave vs spin_lock_irq

On an SMP machine we must use spin_lock_irqsave and not spin_lock_irq from interrupt context. Why would we want to save the flags (which contain the IF)?Is there another interrupt routine that could...

View Article

how can solve this kernel panic

I put the centos7 version on the cd-rom and connected it to the computer to get the new operating system. However, while booting up, the following error occurred. How to fix it? [jpg][1]

View Article

how to permanently edit coredump_filter file and apply immediately without...

is there any way to permanently edit coredump_filter file and apply immediately without reboot.temporary I can do likeecho 0x0 > /prod/self/coredump_filterbut this for current session only. i want...

View Article


How to write a kernel module to implement Address resolution protocol? [closed]

I want to write a Linux kernel module to modify the reply packet that will be sent from my computer.

View Article


Can we generate FIT image from legacy 'Image' for U -boot (Raspberry pi 4B)

I am trying a boot a custom kernel and bootloader on Raspberry Pi 4B.I have generated linux kernel using buildroot using RPi4 Defconfig and compiled u-boot to boot this kernel. This I was able to...

View Article

How should i resolve 'Makefile: recipe for target '/root/' failed error

I'm a newbie to Linux Kernal development and i'm trying to create a hello world module.Codehello.c#include <linux/module.h>#include <linux/kernel.h>int init_module(){ printk(KERN_INFO,...

View Article

Why when I try set serial port, function return "Input/output error"?

I try set in c++ some serial port, but when I try function tcsetatrr, its return error -1. Port opens without problems.char port_name[] = "/dev/ttyS1";int port = open(port_name, O_RDWR | O_NOCTTY |...

View Article

If threads share the same PID, how can they be identified?

I have a query related to the implementation of threads in Linux.Linux does not have an explicit thread support. In userspace, we might use an thread library (like NPTL) for creating threads. Now if we...

View Article


pci device prob kernel souce

I am going thru the kernel code and come across this question, please correct me if I am wrong:when kernel the pci prob, the code that will run the user define probe is located at which have 2...

View Article

Image may be NSFW.
Clik here to view.

__list_add Vs list_add in linux linked list

I struggle to understand how __list_add Vs list_add works? I did read some answers here but could not understand well. I have formulated my question in the attached file... Would please be so kind to...

View Article


Get argv from bprm_check_security in linux kernel. Is the documentation wrong?

According to Linux Kernel's doc:bprm_check_security:This hook mediates the point when a search for a binary handler willbegin. It allows a check against the bprm->cred->security valuewhich was...

View Article

Race conditions due to speculative reordering / Linux RCU facility

The following excerpt is taken from the website https://lwn.net/Articles/262464/ and it is dealing with read-inconsistencies of shared data structures (for which there was the RCU created):p = gp;if (p...

View Article


iwlwifi drivers not loading for ax200 in MX linux

Kernel is 5.8, wifi driver is the intel iwlwifi version for ax200 requiring a kernel of at least 5.1 and the wifi card appears in lspci -k but nothing I've tried is working as I can't find any...

View Article

Cyclone V: Cortex A9 dma_alloc_coherent() Internal Error

I am trying to allocate some memory on CycloneV ARM9 in the Linux kernel.This is the code in the drivertypedef struct tx_dma_buf { volatile phys_addr_t phys_addr; volatile unsigned int *virt_addr;...

View Article

Builtin Platform Driver __initcall Not Called on Linux Kernel Init

BackgroundI am bringing up a Linux kernel via Yocto for some vendor-provided embedded hardware. I have configured the image to boot via fitImage with an initramfs and no rootfs (there is persistent...

View Article
Browsing all 12318 articles
Browse latest View live


Latest Images

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