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

Yocto: overriding kernel configuration

Related to this question. In order to customize the kernel configuration I created in my custom layer this structure:$ tree recipes-kernel/ recipes-kernel/ └── linux ├── files │  └──...

View Article


How to write a Linux kernel module makefile?

I'm trying to write a simple hello world kernel module. I'm working in Ubuntu 18.04.2 LTS on Virtual Box. In the directory /usr/src I created a directory named hello and inside that hello directory...

View Article


Set permanent environmental variables in Linux [closed]

I am trying to set permanent environmental variable for Java in Linux. I have tried many things but it didn't work out,any one have experienced this before.Thanks in advance

View Article

How to use Zero-copy sendmsg/Receive in Boost.Asio [closed]

I am using Boost.Asio, I want to improve my system by using Zero-copy sendmsg/Receive. Can I use Zero-copy sendmsg/Receive in Boost.Asio? Could you give me how to use them if I can use them?

View Article

Why is the close function is called release in `struct file_operations` in...

I'm trying to make a linux kernel module, which supports open, close, read and write operations. So I want to register these functions via struct file_operations, however I can't find 'close' entry in...

View Article


Kernel crash at snd_ctl_find_numid+0x38/0x6c

I am getting NULL pointer dereference occasionally at snd_ctl_find_numid+0x38/0x6c in 4.4 kernel while accessing snd_kcontrol. The issue is reproduced ocassionally. Can anybody provide any pointer in...

View Article

Kernel crash due to erase of program code [closed]

Assuming a code of a process can be erased at some random time, could this scenario lead to a kernel crush? I was thinking of such a scenario, where PC is updated to next command, the code of the...

View Article

Error at Makefile No rule to make target 'syncconfig'

Dear Stackoverflow community,Trying to build a wifi dongle driver I am having this issue. The source code is this: https://github.com/xtknight/mt7610u-linksys-ae6000-wifi-fixesThe problem at sudo make...

View Article


Suse Linux kernel version

I am unable to understand the porting of patches from Linux kernel to Suse distribution. Looks like that the SuSE doesn't maintain the kernel version as per upstream, or have their own way of...

View Article


How do you know what system call is invoked when an executable file is run?...

If you open sublime-text in Linux Mint, which of exec() or system() gets called?

View Article

Executing boot ROM functions in Linux drivers

I'm trying to execute some functions from the boot ROM on an NXP IMX6UL in a Linux device driver. I figured a device driver is the only place I can get manage this. Currently, I map the boot ROM using...

View Article

How do I take user command and implement it using exec function (linux) in...

I am trying to write a shell program I need to implement something like -1)cat input.txtIt should support any variation of command like ls -l and so onI have a char** tokens which is storing the...

View Article

User namespace - Why ecs_agent container launch as root owner?

Below is the ECS optimised AMI machine:$ cat /etc/os-release NAME="Amazon Linux AMI" VERSION="2018.03" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2018.03" PRETTY_NAME="Amazon Linux AMI 2018.03"...

View Article


How can i resolve this error in the script

expr: syntax error h2.sh: line 13: [: -gt: unary operator expected#!/bin/sh FILE=merchant.xml OLDTIME=3600 CURTIME=$date FILETIME=($date -r File) TIMEDIFF=$(expr $CURTIME - $FILETIME) if ["$TIMEDIFF"...

View Article

implicit declaration of blk_init_queue

I was trying to write a basic block driver following this link:https://linux-kernel-labs.github.io/master/labs/block_device_drivers.htmlI wrote the following code:#include <linux/kernel.h>...

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

Copying more than 1 page size using sysfs from kernel space to user space

I have created a sysfs entry with store and show functions. I'd like to use show function to copy buffers of size > PAGE_SIZE from the kernel space to userspace.I am able to currently copy buffers...

View Article


icmp_hdr is wrong on CentOS 6 kernels

I have a simple netfilter module to test icmp_hdr function:unsigned int hook_func( unsigned int hooknum, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, int...

View Article

By only using system call to manipulate the data, is there a call that allows...

I am going through the man on system calls for linux and am having a hard time figuring out how to compare two strings with each other. There is a way of comparing by byte length but how do you...

View Article

Linux driver disable_irq() board crash issue [closed]

I am working with touchscreen driver in Linux kernel 4.4 and trying to implement suspend functionality. I am using disable_irq() function to disable the particular IRQ in sleep, and I found that driver...

View Article
Browsing all 12360 articles
Browse latest View live


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