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

Fedora 31 does not shut down

I am using fedora 31 for two days. When i try turn off my laptop, i encounter screen in below and laptop does not shut down. I search this issue but can't fix it. Thanks for help.error screen

View Article


How to finding all runnable processes

I'm learning about the scheduler and trying to print all runnable proceeses. So I have written a kernel module that uses the for_each_process macro to iterate over all processes, and prints the ones at...

View Article


How 'logcat -b kernel' command dumps the logs on console ? Please explain the...

Please anyone explain the flow of logcat -b kernel command which dumps the kernel logs on console.From which buffer the kernel logs are pulled by logcat?

View Article

Can't set the IRQ 's trigger type in Linux kernel

I am working a problem in Linux kernel 3.18.20 with RTAI Patch 5.2. I found the frequency of interrupt which my driver had registered was high, about 20us/time.I tried to change its trigger type to see...

View Article

Using wait_event_interruptible and wake_up_all together

For a class project involving scheduling processes using blocking and locks, we're supposed to use two kernel functions:int wait_event_interruptible(wait_queue_head_t q, CONDITION); void...

View Article


Why define a macro to a function with the same name?

I found the code below in https://github.com/torvalds/linux/blob/master/arch/x86/include/asm/atomic.hstatic __always_inline bool arch_atomic_sub_and_test(int i, atomic_t *v) { return...

View Article

Can't seem to apt-get update on kali linux [tried many ways

I keep getting such errors: None of these work for me guys, I've tried to change the sources in the sources.list files by enabling one, disabling the other and still no avail, I even tried to connect...

View Article

Image may be NSFW.
Clik here to view.

How to see CentOS7 running in VMWare WS serial console output in putty

I am having problems viewing serial console output coming from CentOS7 kernel in putty. Here are my settings:contents of /etc/defaults/grub:GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g'...

View Article


Why my Linux has crashed after going to init 1? [closed]

I went to init 1 and then came back to normal but my Linux starts up too slow! also programs run after a long period for example 10 seconds I have to wait. another problem that init 1 made is that my...

View Article


vboxdrv kernel module is not loaded..[redhat 8]

I had followed all of them:https://www.if-not-true-then-false.com/2010/install-virtualbox-with-yum-on-fedora-centos-red-hat-rhel/https://www.binarytides.com/fix-vbox-kernel-driver-error/At the time I...

View Article

Where is source code for linux kernel syscall service routines?

My understanding of a syscall (high level) workflow is:User calls libc wrapperwrapper puts syscall number and arguments in the right place, registers or stackwrapper executes syscall or int 0x80...

View Article

Understanding the device tree overlay format

I have a plan to write a module using a custom device tree base on this onecompatible = "allwinner,sun8i-h3"; fragment@0 { target-path = "/aliases"; __overlay__ { spi0 = "/soc/spi@01c68000"; spi1 =...

View Article

Why are some of the CPU's counters zeroes in /proc/interrupts [closed]

I am looking at 'cat /proc/interrupts' output and observed that some of the counters are zeroes. Can anyone provide me the reason behind this, is not IO-APIC responsible for sharing the interrupts in...

View Article


Is it possible to run the rootfs containing kernel and DTB files for a...

Our hardware vendor provides us the yocto based rootfs for a gateway device (ARM softfloat) as a tar file. This file includes kernel image and the DTB files for that board. Is it possible to run this...

View Article

SPI device passthrough to guest domain (domU) in Xen

I was going through the documentation of xen for device passthrough. From this, i understood that the dom0 doesn't have any control on passthrough of device. However, the modifications to be done to...

View Article


unlinkat_entry_handler, copy_from_user failed: 47

Manufacturer: HP Product Name: ProLiant DL380 Gen9 OS:centos6.3 kernel:4.1.0-15 This error is often reported in my machine system log. What do these misstatements mean?need helpDec 11 18:03:50...

View Article

Pinning user space buffer for DMA from Linux kernel

I'm writing driver for devices that produce around 1GB of data per second. Because of that I decided to map user buffer allocated by application directly for DMA instead of copying through intermediate...

View Article


Registering a module_load tracepoint using the exported kernel symbol

While debugging a 3rd party debugging tool, I came across this problematic piece of code:tracepoint_probe_register((struct tracepoint *)kallsyms_lookup_name("__tracepoint_module_load"),...

View Article

Equivalent of fprintf function in Linux Kernel Module

I am developing a Linux Kernel Module and I need to use an equivalent of fprintf function to print some informations in a file.I wonder if there is an equivalent of this function in kernel mode.Thank you!

View Article

The call-back function (scull_read) for read system call of a custum...

This question already has an answer here:cat function calling read() infinite times 3 answersI have written a character device driver to toggle two GPIO pins. For reading the device, callback function...

View Article
Browsing all 12241 articles
Browse latest View live


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