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

Is there any script I can use to check if a C/C++ code file is according to...

Looking for a script that can check or correct if my C/C++ i.e. .c or .cpp file is according to Linux kernel coding standard. I found a answer : How to use checkpatch.pl script for our own c files to...

View Article


/etc/syslog.conf - Log specific command and send it to specific file

Is it possible via /etc/syslog.conf to create a rule that log a specific command that user invoke and send it to a specifi log file?For example i want that when users type history -d syslogd daemon log...

View Article


I couldn't find the definition of proc_create_data function in Linux kernel -...

SituationI'm following this to better understand the Linux kernel.There's an example on writing a custom /proc interface. Here's a snippet from the sample code linked above - custom-proc.c:#include...

View Article

Facing Issues while compiling linux kernel v5.9.1 [closed]

I am working on a system having Ubuntu 19.04 .I was trying to compile kernel v5.9.1 and it showed an error that pahole is old. I upgraded it to version 1.17Now while compiling it is showing this error...

View Article

USB deregistration issue

I have a USB device that sometims does not deregister itself from the device tree when the power is pulled off. I can still see it under the list of lsusb.Basically, I get two types of error logs under...

View Article


Getting /bin/sh: Syntax error on compiling linux kernel

I am trying to create my own system call in linux. When I compile the kernel with make, I get the error/bin/sh: 1: Syntax error: "(" unexpected (expecting "}")make: *** [Makefile:1256:...

View Article

Understanding the getting of task_struct pointer from process kernel stack

Right now I'm reading the book "Linux Kernel Development 3d Edition" by Robert Love. There he write about the thread_info struct which contains the pointer to task_struct struct and, as I understood,...

View Article

SystemCall to process and show a table of PID's, names and their states

So i have an assignment that I am having some difficulty wrapping my head around. The assignment is to create a system call called "mysyscall3" that takes no input and produces./a.outPID COMM STATE1...

View Article


kali linux vmware gcc not found error

I am new to kali linux and I try to find my way around it.. I have managed to install vmware workstation 12.1.1 but when I try to run it I get this errorA compatible version of gcc was not found. GNU C...

View Article


What are ATAGs for a device that uses Linux Kernel?

I am trying to understand how a kernel boots. I am currently trying to port a new kernel to hTC Incredible S VIVO (s710e) device, but I cannot get it to boot. So, I looked into the device's original...

View Article

What is the predictable behavior of changing SOL_SOCKET, SO_RCVBUF on the fly...

What should be expected to happen if we resize the input buffer of a UDP server socket on the fly on a Linux system?setsockopt(sock, SOL_SOCKET, SO_RCVBUF, ...)I am particularly interested in these...

View Article

How to use a spin lock if copy_to_user needs to be called?

I have written a small driver to read some data and give it to the user. My driver can be used by more than one application, i.e. it's a reentrant driver, hence the use of a spin lock. But I discovered...

View Article

How to change the default linux timer interrupt handler?

For an operating systems project, I need to change the behaviour of the timer interrupt handler. To my understanding so far, there are basically two ways:Change the descriptor in the Interrupt...

View Article


Should I use `gpio_free` before using `gpio_desc` which is returned by...

Updated Question:In the last section of GPIO Descriptor Consumer InterfaceAll the same, a GPIO numberpassed to gpio_to_desc() must have been properly acquired, and usageof the returned GPIO descriptor...

View Article

command 'go' not found, even Go is already install in my Ubuntu 20.04 VM...

I'm facing some weird issue while trying to run go command in Linux terminal.I installed GO and set my GOPATH and GOROOT in ~/.profile and after that, I updated the current session using $source...

View Article


Why do I get -38 error, while trying to insmod a kernel module probing do_fork?

I am trying to insmod a jprobe module to a rooted Android phone: #include <linux/kernel.h> #include <linux/module.h> #include <linux/kprobes.h> /* * Jumper probe for do_fork. * Mirror...

View Article

How to fix: fatal error: openssl/opensslv.h: No such file or directory in...

I have RedHat Enterprise Linux Server 7, and I downloaded the linux kernel version 4.12.10 which I am trying to compile but when I execute the following command:make modulesI get the following error:...

View Article


qemu - pci_dma_read and pci_dma_write does not work

So I'm trying to learn how pci devices and drivers work using the edu device and an educational driver,and It seems like the pci_dma_write function fails to actually write the information from the the...

View Article

pci_rescan_bus() doesn't rescan PCI bus in Linux

I am trying to rescan PCI bus in my own kernel driver with the help of pci_rescan_bus kernel function but I do not see it is functioning same.If I try to do same from user space by running following...

View Article

I can't open serial port to FTDI FT2232HQ chip

I have a PYNQ-Z2 board and it contains FT2232HQ chip, which convert data from USB to JTAG and UARTThe problem is the board is working and is detected by Vivado (I can program it), but the device...

View Article
Browsing all 12244 articles
Browse latest View live


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