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

Silabs Si5340: how to define a clock for one of the chip outputs

We develop hardware that uses Si5340 to provide clocks for various chips (ADC, DAC).Hardware is based on Xilinx Zynq Ultrascale and OS of choice is Petalinux 2018.3.The driver that we use is clk-5341...

View Article


How to use the gpio pins on the raspberry pi with the device tree in a device...

I try to develop a driver to control custom hardware over the gpio pins on the raspberry pi.I would love to use the new gpio_desc in combination with the device tree. But I cannot get this to work.If i...

View Article


Is there a function to get all present extension headers inside packet in C

I know there is a function ipv6_find_hdr to find particular extension header.Is there a function which would return all extension headers inside packet?Or I need to loop them through manually?

View Article

How to uninstall Desktop/ GUI packages from Porteus linux?

I have been using Porteus 3.22 xfce version of linux.I tried to install Porteus in bootable partition of my sd card but I want to use it with text mode only while removing all desktop/GUI packages and...

View Article

Unusually slow TCP-connection in Linux

I wrote user-mode client-server c application based on Berkeley sockets that interact over some private network. The situation is definitely strange. Occasionally the connection becomes very slow under...

View Article


How to load image in sama5d27-som1-ek kit using SDcard

I am following standard process to boot sama5d27-som1-ek kit using SDcard but i got following errori cannot understand why it shows cannot open root device.i used 8GB sd for this processVFS: Cannot...

View Article

what is Inactive(file) and Active(file) in /proc/meminfo?

After ran a process Active(file) and Inactive(file) size is continuously increasing in my Linux system. What is mean by Active(file) and Inactive(file) memory in /proc/meminfo ? $ cat /proc/meminfo...

View Article

How to use hwsim? [migrated]

I have tried using this guide: https://wireless.wiki.kernel.org/en/users/drivers/mac80211_hwsimand did modprobe mac80211_hwsim However the output is:modprobe: FATAL: Module mac80211_hwsim not found in...

View Article


Best practice lkm to hijack inputs, is there lawful method?

This is working sample of hijacking user's input via overriding kernel's syscall read.https://pastebin.com/BhGSB73k#include <linux/module.h> #include <linux/kernel.h> #include...

View Article


Linux Driver Development - Hooking Open SysCall Leads to Crash

I am wanting to learn more about hooking syscalls in Linux . I am trying to have my driver report to me when a file have been opened. ultimately and to do this I thought it would be good to hook...

View Article

How to install linux Headers on Beaglebone Black

I'm currently trying to build a LKM (Linux Kernel Module) for a Beaglebone Black Board under Debian version 7 (3.8.13-bone47). I have problems whenever I try to download linux headers... Here is what...

View Article

Restore or remove the Linux Kernel Module from sysfs

I recently coded a LKM which has the ability to hide itself. All works just fine when I hide the module but when I restore it and look at it in the lsmod the value of the Used By column suddenly is...

View Article

Is cap_dac_override a superset of cap_dac_read_search?

I'm working on limiting capabilities of an existing, complex application and I have been searching for a while for a credible source proving that permissions included in cap_dac_override are a superset...

View Article


Accepting bluetooth pair request from code [closed]

Hellow.I am new to linux.I have a raspberry pi.I want to write a code that listen to some event on operating system like bluetooth pairing request and accept that bluetooth pair request frome code.any...

View Article

How to tell where linux kernel is parsing MLD joins on tuntap interface?

I have been working on a program which uses a TUNTAP interface (in TUN mode) on a routing device which runs on top of the Linux kernel. It is a multicast tunneling protocol, and I am trying to send MLD...

View Article


Task "dying" state during uninterruptible syscall with SIGKILL

I read this post about SIGKILL and was confused about the following statements: only some system calls are interruptible, so the kernel internally marks the process as being in a special "dying" state...

View Article

Problem utilizing spi module of beaglebone black

I have the following weird problem. I have setup the BBB to activate the spi1 module. The the module is connected to an F-RAM chip (FM25CL64B). I have done all the necessary configuration. The...

View Article


Using Slab Allocator in linux kernel

I want to learn more on attacking Slab allocation using buffer overflow. I have seen only little tutorials on this issue that are not understood. If someone can help and explain the concept behind it,...

View Article

FFMPEG:Adding beep sound to another audio file in specific time portions

I've a scenario in which I need to modify certain portions of audio file.Currently,I'm able to add silence to the audio file at specific portions through FFMPEG audio filter -af.But is there something...

View Article

Problem with installing headers in debian 9.5 stretch

When I try to install header by using this command:apt install linux-headers-$(uname -r)Then I get this output with error: Reading package lists... Done Building dependency tree Reading state...

View Article
Browsing all 12345 articles
Browse latest View live


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