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

implicit declaration of pid even though I included unistd.h?

I'm currently working on a project that includes using pids. When i compile my program in a linux vm, i get the following message:kernel/sys.c:2405: error: implicit declaration of function ‘getpid’...

View Article


Implicit declaration of getpid in kernel code even though I included unistd.h

I'm currently working on a project that includes using PIDs. When I compile my program in a linux VM, I get the following message:kernel/sys.c:2405: error: implicit declaration of function ‘getpid’...

View Article


Why a python process in linux shuttdown my Pc and not in Windows?

PC features:OS: Debian 10 x64 Processor: AMD Ryzen 7 2700x motherboard: Rogstrix b450-f Ram: 16gb GPU: ZotaGaming 2070 super.I try to run a program,ANFIS whit data set IRIS. but from one moment to...

View Article

How are jiffies incremented in a tickless kernel

Kernel maintains a global variable called "jiffies" which holds the number of ticks/timer interrupts from system boot.Every time a timer interrupt occurs, the value of an internal kernel counter is...

View Article

how to port drivers to android kernel? [closed]

We have successfully ported a kernel source for our device oppo a37f(msm8916) from oppo f1(msm8939). it booted up but have bugs in it. we contacted with some devs but they tell us that we have to find...

View Article


Efficient way to find task_struct by pid

Is there an efficient way of finding the task_struct for a specified PID, without iterating through the task_struct list?

View Article

Can the send_sig() function sleep in Linux?

Can I safely use the send_sig() function in kernel-mode to send a signal to process from within atomic context? In other words, could this function block or sleep?

View Article

Netfilter hook doesn't see all packets

I wrote a kernel module that uses netfilter hook to dump multicast DNS packets.static uint32_t myhook(uint32_t hooknum, struct sk_buff *skb, const struct net_device *in, const struct net_device *out,...

View Article


bitbake -c savedefconfig overwrites current configuration

Yocto environment for an ARM embedded board. Following these instructions I'm having hard time to change the kenerl configuration. Basically I did:bitbake -c menuconfig virtual/kernelenabled a new...

View Article


creating Initramfs in Yocto

I wanted to create initramfs in yocto. Therefore I created a custom recipe, added following lines; require recipes-core/images/core-image-minimal.bb IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"It built...

View Article

Enabling a NIC from userspace, how is 'sudo ip link set eth0 up' implemented?

As far as I understand, userspace programs can enable a network device, such as sudo ip link set etho0 up. It eventually calls dev_open function on the nic. But I thought kernel functions can not be...

View Article

apt upgrade fail with initramfs error failed for boot initrd.img [closed]

I get an error when I try to upgrade my system./etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.3.0-29-generic I: The initramfs will attempt to resume from...

View Article

How to increase MAX LCORES in DPDK

I am using dpdk 17.11.1, on a system with > 128 cores. In the startup log, it is displayed that 128 cores are detected.As I am interested in using lcores beyond 128 for the application, I tried to...

View Article


Image may be NSFW.
Clik here to view.

What are the factors that effects the kernel build(Image) to flash on the...

I have fully unlocked the Samsung device and I have downloaded the Kernel sources from the Samsung open-source site. I have built the kernel fine with instructions are given in the README_Kernel.txt...

View Article

Banana Pi R2- MT7623A PCI slot interrupt not detected

The PCIe driver for a wireless card connected to slot 0 of MT7623A is loaded, but the probe function of driver module returns error when connected to another PCIe slot on the same system. On debugging,...

View Article


Error while building kernel 2.6.32-754.18.2 - SELF TEST FAILED...

I am building the kernel rpm version 2.6.32-754.18.2 which has been failing with ‘SELF TEST FAILED’ message. I tried to explore further and found there are either some possibilities with the...

View Article

C++: __aligned(__alignof__) causing problems with char array data?

Tl;dr: A char array my code is accessing that was previously pointing to an expected string value now has unexpected characters before the string. My current theory is this is somehow being caused by a...

View Article


implenenting AMG8xx Infrared Camera Kernel Module and Video4Linux

I have found, and forked(https://github.com/firebladed/amg88xx-kernel-driver/blob/master/amg88xx.c), a kernel module for the...

View Article

Can't compile a module using buildroot

I need to compile a module with buildroot so I can debug it using QEMU+gdb, and the current guides don't work. I've tried the most basic forms according to the documentation and nothing worked. Maybe...

View Article

Which CPU increments the jiffies in SMP?

As I read, the jiffies is incremented on every timer tick by the timer ISR. But in SMP, all CPUs will have their own timer interrupt and hence their own timer ISRs. So my question is:Is jiffies global...

View Article
Browsing all 12244 articles
Browse latest View live


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