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

Does modern operation system do "data relocation"? [duplicate]

This question already has an answer here: How does heap compaction work quickly? 1 answer Does modern system (or system kernel more precisely?) do the "data relocation"? That is, system move the data...

View Article


Kernel Oops 96000021 [#1] SMP

I'm writing a driver for petalinux, but I've some problems with an v4l2 ioctl function, in particolar with ioctl(fd, VIDIOC_STREAMON, &type). When I call streamon it sometimes goes correctly other...

View Article


Acccess to /proc/net/tcp in Android Q

In my VPN application up until Android-9, it was possible to read the /proc/net/tcp files from apps targeting API level < 28. Access from apps no longer seems to work in Android Q. I'm getting an...

View Article

U-Boot i2c detects my device (70) but Linux i2c does not. Why?

I am in the process of migrating from Linux 3.10 to a slightly newer version, Linux 4.4.8. After the migration it seems that i2c can no longer see some of my hardware. The hardware itself has not...

View Article

Interrupt on one core and tasklet schedule on different core [duplicate]

This question is an exact duplicate of: How tasklet can be attached on other core which is not getting interrupt? I am not able to address the below issue: Suppose, i am getting interrupt on core-1...

View Article


How do connect the Linux kernel module? [on hold]

I can't find a command which connect the Linux kernel module so that when the kernel panics, it is not active after rebooting. Where can I see the command or write a comment with the command.

View Article

userfaultfd seems slow - is it expected?

When I first learned about usefaultfd my initial reaction was - wow, finally! - this is a very useful feature, I can see some interesting applications of it outside of QEMU/KVM kind of scenarios. So,...

View Article

Image may be NSFW.
Clik here to view.

netfilter hook is not retrieving complete packet

I'm writing a netfilter module, that deeply inspect the packet. However, during tests I found that netfilter module is not receiving the packet in full. To verify this, I wrote the following code to...

View Article


Does linux have any macro to check whether current CPU core is executed in...

I have some code which I don't want to be executed from interrupt context. To detect this, I want to trigger BUG() from my code, but I need some macro which will tell me whether my code executed from...

View Article


How to setup Beaglebone black for qemu and kvm on ubuntu?

Hello I was trying to configure beaglebone black (AM335x) for qemu. So that we can test our designs before testing on actual hardware. But while Googling I don't find any solution about it. Any one...

View Article

How to add an ADV7282-m to the linux kernel

I'm trying to add ADV7282-m support to a linux kernel build with Yocto. However I cannot seem to get it to work. I have gotten the module to load and detect the chip. The driver completely makes it...

View Article

Creating Linux System Keyboard Hooks (keylogger)

I have the question about Syscalls in Linux, I'm use Ubuntu. Could someone tell me how can I hook the keyboard Syscalls. I have tried to emulate this by writing short "C" code program. strace showed...

View Article

linux kernel virtual memory layout

I'm using the 32bit 4.1.8 linux kernel , RT patch (no high memory) and changing the following configurations: CONFIG_LOWMEM_SIZE (Maximum low memory size) CONFIG_PAGE_OFFSET (Virtual address of memory...

View Article


Get Process Info (Current proc, parent proc, oldest child proc)

I have an exercise about adding a system call in the Linux kernel, but I'm struggling to implement it. Below is the description: The main part of this assignment is to implement a new system call that...

View Article

Is mmap creating from "/dev/zero" never going to set the dirty flag in its...

Basically, I just use mmap() to create a memory like standard malloc, because I don't really need it to write the data changes to a file. However, I expect its dirty page feature which can help me...

View Article


Checking Subflows in Multipath TCP Connection

I have installed the multipath TCP connection and have 2 interfaces active in my pc. H want to see the mptcp connection working on my device. How do I check that subflows are actually created ? I...

View Article

Kernel module crash when reading system call table function address

I am studying rootkits and trying to hook the system call table. As i can already dynamically retrieve the table's address from /boot/System.map-$(uname -r), i traced and isolated the problematic part...

View Article


Raspberry Pi RT Preempt Linux Kernel Build Error

I am trying to Build and install a Raspberry Pi RT Preempt Linux Kernel. These are the steps that I had followed: I installed the pre-compiled kernel kernel-4.4.9-rt17.tgz I downloaded Raspberry Pi...

View Article

How can I access or enumerate available LEDs from kernel code (BeagleBone...

I am trying to write a custom syscall handler that manipulates the LEDs on a BeagleBone Black board. I have gone through the kernel LED API (include/leds.h), but I am unable to find anything that'd...

View Article

Difference between arm-eabi arm-gnueabi and gnueabi-hf compilers [on hold]

What is the difference between arm-eabi, gnueabi and gnueabi-hf cross compilers. I am kind of finding it difficult to choose the compilers. Is there a native compiler for arm?

View Article
Browsing all 12230 articles
Browse latest View live


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