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

linux headers are consuming a lot of disk space on the EC2 machine. Is it...

EC2 machine on aws is filled with multiple linux headers and currently / is 100% full on disk space. I ran commands like apt-get autoremove but it is throwing an error saying No apport report written...

View Article


In OSes that use page tables, are page tables ever empty?

In studying shadow paging mechanisms, I learned of a case where a shadow page table starts out empty and only gets filled in as the guest VM accesses memory. It got me thinking about traditional page...

View Article


Image may be NSFW.
Clik here to view.

On my keyboard when I press 'Fn key'+'Window Key' my Linux system shutsdown...

I check with Linux Mint(Debian) and Manjaro Linux (Arch Linux). When I press 'Fn_key + Win_Key' the system shutdown at the spot without any confirmation and interesting thing is that if I press this...

View Article

Why function __pud_alloc() is undefined in kernel module?

I'm a beginner at Linux Kernel. Now I'm trying to write a module to set page table by myself.My computer is x86 and the kernel version is 5.4.0.First I use the kernel parameter memmap to reserve some...

View Article

What is the difference b/w userspace and kernel space network calls in linux...

Actually, i'm tracing down an application and what i need to understand is how kernel space network calls works and how these differs from user space network calls.I have a fair understanding of user...

View Article


Static IP address set in /etc/network/interface not getting updated after...

I have configured static IP address in /etc/network/interfaces file as below# The loopback interface auto lo iface lo inet loopback# Wired or wireless interfaces auto eth0 iface eth0 inet static...

View Article

How to get a detailed breakdown of the kernel execution time of my program?

I have a program that performs some AI inference task.With the time(1) command, I find that it spent a fair amount of time in the kernel (i.e. the system time as outputted by time(1)).Is there a way to...

View Article

What is difference between nl_pid in sockaddr_nl and nlmsg_pid in nlmsghdr?

When sending a netlink message, I guess both nl_pid in sockaddr_nl structure and nlmsg_pid in nlmsghdr structure are used to show the origin of message. Isn't it redundant? or it has another...

View Article


Is it possible to compile a custom Linux kernel driver without compiling the...

I'm just curious if it is possible to compile a Linux kernel driver (* .ko binary) with only Linux kernel sources?Is it inevitable to have a compiled Linux kernel to compile a Linux kernel driver?

View Article


Output Runtime error caused by executable run by execvp

I am trying to execute c program executable using execvp. Normal cases like taking input using scanf and displaying output using printf works fine in terminal.But Runtime errors are not displayed in...

View Article

Change permissions of group to the same permission of others

I have some files with some specific permissions-For exemple in the file fichier_10 i have the permission read in the others : -r-x---r-- i have to add the same permission in the group to be :...

View Article

Poll a filp for read, blocking with timeout (kernel module)

I'm writing a linux kernel module that needs to read some data from a serial device.I'm using filp_open() to open the device and then kernel_read() to read from there.How can I poll the filp (returned...

View Article

Converting clock time (real world time) to jiffies and vice versa

I use mktime64 to convert a clock time into a jiffies value.// year, mon, day, hour, min, secunsigned long my_jiffies = mktime64(2020, 2, 24, 3, 2, 50);The output from the above code is: 1582513370How...

View Article


Change permission using find -perm and -exec on linux [closed]

I have some files with some specific permissions-r--r----- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_1-r-x---r-- 1 elfo74030209 elfo74030209 0 fév 11 20:54 fichier_10-r--r----- 1 elfo74030209...

View Article

How to write a derived perf event in linux kernel

I want to implement a new derived Linux perf event, X in the kernel space. A user-space application can perf_event_open the derived event and read the derived metrics.At the kernel level, the derived...

View Article


linux - NDP ip neighbor entry to own IPv6 address

While troubleshooting an issue i found that my linux virtual machine is having a strange entry in its ip neighbor (arp cache) table. This entry is having a host IP v6 address that is the self...

View Article

Is it possible to have MDIO Phy and I2C Phy interface running on the same bus?

I'm interfacing a Vitesse 8221 Phy and a KSZ8567STXI Phy on the same bus. Both interfaces do have the option of either i2c or mdio to access the their registers. However, with the hardware design we...

View Article


Platform device and platform driver linking

While going through the usb code in linux. I came across platform_device_add() api.My question is when we create a platform device using the above api, how does the associated driver gets bind to it?As...

View Article

open-file-description table is not like what Tanenbaum described in Ubuntu?

In the book Modern Operating System, the author explained that if the shell script has two commands, p1 and p2 and each takes turn writing into a file x, the position where p1 finishes will be...

View Article

How to initialize a modem pppd deamon with wvdial?

I am in the proscess of writting an c++ application to menage a modem connection on my arm board. I would like to use the wvdial utility for this. Unfortunately I have a problem. When startng...

View Article
Browsing all 12241 articles
Browse latest View live


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