How to parse NL80211_CMD_SCHED_SCAN_RESULTS event?
I'm new to the libnl library, can anyone help on how to extract the wifi scan results from the NL80211_CMD_SCHED_SCAN_RESULTS event? Anything you tell/comment will be useful.After reading the...
View ArticleMaking Kernel Module and registering it as pci device driver and network...
I like to make a kernel module. And inside it I like to register it as pci and network device driver. And using ioctle from user space to access the module's buffer(in pci and network driver) and...
View ArticlePCI Express AER Driver issues on Linux
I'm debugging a PCIe hardware issue on Linux and I want to enable PCIe AER driver on linux to catch any AER errors reported by my hardware device. I'm following this...
View ArticleCan PCIe end point device memory mapped into linux block driver via PCIe BAR...
How can external PCIe Device BAR mapped memory used in linux block driver and eventually make available to user space?
View ArticleLinux socket hardware timestamping
I'm working on a project researching about network synchronisation. Since I want to achieve the best performance I'm trying to compare software timestamping results with hardware timestamping ones.I...
View ArticleIntegrating changes in the kernel using Yocto using patches
If you want to modify the linux kernel such that it excludes certain modules, you usually go to /kernel/msm-4.9/arch/arm/configs/vendor/<machine-name>_defconfig, which has a bunch of Kconfig...
View ArticleHow to implement a system call that could check if itself has been...
How to check if a system call has successfully executed?One way is to use command line $ dmesg to look at kernel log. Is there any other way that we can do?My first thinking is that, we could check the...
View ArticleWhy do some linux header files define a function to return 0 after the...
I am looking at the Linux 4.14 kernel's include/linux/clk.h file, and have noticed that some of the functions are declared, and then later defined to return 0 or NULL.For example:struct clk...
View ArticleIs "stat" a cpu-consuming command?
my question is : Does the "stat" command in Linux system consume too much CPU if I constantly call this command (e.g. 50 times per sec)?This is how the question came from:I am writing programs in Java...
View ArticleGetting fatal error, unable to load plugins [closed]
I am using parrotGNUI/Linux and I am not familiar with Linux. I used this command to change permissions $sudo chmod -R ugo+rw /but now i can not login as root user. when i tried to login it gives me...
View ArticleCan NVMe Device CMB memory mapped into linux block driver via PCIe BAR and How?
How can external PCIe Device CMB memory used in linux block driver and eventually make available to user space?Coded block driver and memory assigned from CMB (NVMe Drive exposed CMB in one of PCIe...
View ArticleDoes RCU (Read Copy Update) cause to access a data which is already deleted?
I am trying to understand RCU's working and its usage https://en.wikipedia.org/wiki/Read-copy-update . I am trying to understand the concept of multiple versions of objects while readers and writers...
View ArticleAfter modifying the kernel : Alert! UUID=xxxx does not exist
I'm working on the task 14 of the eudyptula challenge : https://github.com/DavidWittman/eudyptula-challenge/blob/master/task14/task where I modified the kernel, but after compiling it successfully and...
View ArticleDo you need a realtime operating system in order to ensure your program is...
Lets say we a running a headless Linux machine and running a program as user or root (eg reading SPI data from a sensor, listening for http requests) and there is reason to believe there is almost...
View ArticleNeed to remove and reinstall my kernel module for it to work
I have compiled linux-kernel 2.6.33.7 with the xt_tls kernel module.Kernel module file xt_tls_main.c is in /lib-mpc830xtwr-20111228/rpm/BUILD/Linux-2.6.33.7/drivers/iPort3/xt_tls_main.c.Needed library...
View Articlein /proc/pid/limits where the hard limit value comes from?
I didn't set the hard limit value in /etc/security/limits.d/<xx.conf> and /etc/security/limits.conf.There's only soft limit value 4096 set.Then I go to /proc/, and cat the limits. I saw 31839 is...
View ArticleAddress designation in RISC-V
I am running a simulated RV64GC core in QEMU and am trying to better understand the virtual memory subsystem and address translation process in RISC-V. My simulated system runs with OpenSBI, the Linux...
View Articlecross compiling kernel module Yocto SDK, errors from missing headers included...
Trying to compile a kernel module with the Yocto SDK toolchain. Using CMakeLists inside CLion with ExternalProject_Add directive.Makefile:# Makefile for uio48ifneq ($(KERNELRELEASE),) # called by...
View ArticleUnable to set kernel.core_pattern for the pods [duplicate]
I am trying to modify the kernel.core_pattern but I am unable to modify it as it is Read-Only.I have tried:echo 'kernel.core_pattern=/tmp/core-%e.%p.%h.%t'>> /etc/sysctl.confReload sysctl:sysctl...
View ArticleWhat is the theoretical maximum number of open TCP connections that a modern...
Assuming infinite performance from hardware, can a Linux box support >65536 open TCP connections?I understand that the number of ephemeral ports (<65536) limits the number of connections from one...
View Article