Quantcast
Channel: Active questions tagged kernel-modules - Unix & Linux Stack Exchange
Browsing all 1184 articles
Browse latest View live
↧

How to use snd_soc_dai_ops from cpu dai driver in another module

Is there a way I can call the snd_soc_dai_ops functions(such as snd_soc_dai_set_tdm_slot) that a cpu dai driver implements from a custom kernel module?

View Article


writing simple lsm in kernel 5.x

I'm trying to write a simple lsm module that also does nothing. but I have several problems.static int rdwn_task_kill( struct task_struct* p, struct siginfo *info, int sig, u32 secid) { return...

View Article


iwlwifi: Failed to start INIT ucode: -110 in Arch Linux kernel version 5.5.3

I'm new to Arch Linux. I installed it on my laptop(LG Gram)it seem fine post installation. I don't remember my wlan works post installation because I used wired. But, when I turned on my laptop today...

View Article

How to create Linux Kernel Headers from Linux Kernel Source?

I'm working with Tiny Core Linux and attempting to install Vmware Tools, which of course needs the Kernel Headers :-).It does not appear they have the Kernel Headers readily available in a package, but...

View Article

How to build kernel modules in Alpine 3.12

I need to build this wifi driver for Apine 3.12 x86_64.I install gcc and linux headers by this commands:apk add --update alpine-sdk linux-headersBut when I tried to build the module it was failed and...

View Article


How to know if the kernel is compatible with v4l2loopback?

I want to use v4l2loopback to stream from OBS-Studio in Microsoft Teams or discord, but I'm not sure if it will work with my system (I also don't really understand the section "DEPENDENCIES" on the...

View Article

hwmon: add missing kernel module

TL;DR:The kernel module sht3x (https://www.kernel.org/doc/html/latest/hwmon/sht3x.html) seems to be missing in a standard debian installation. I need it in order to read an external sensor. How can I...

View Article

WSL 2 does not have /lib/modules/

I have the source code of a hello world kernel module that works in Ubuntu 20 in a laptop.Now I am trying to compile the same code in Ubuntu 20 but inside WSL2. For that I am using this:make -C...

View Article


Calling Linux Kernel methods from a Kernel Module

What is the right way of calling kernel functions in a C file from a kernel module in Linux?I want to call exit_task_namespaces in linux/nsproxy.c from my first ever kernel moduleI am doing...

View Article


Virtualbox installation error in kali linux

sudo apt install virtualboxReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following additional packages will be installed: dctrl-tools dkms...

View Article

How to find the kernel boot parameter for a given boot configuration option?

I have a Dell laptop running Debian Sid. Current kernel (4.15.4) is configured to load dell_smbios as module (CONFIG_DELL_SMBIOS=m). This produces the followning error while bootingdell_smbios: No...

View Article

Disable bridge module insert?

I have Fedora 20 setup with default kernel configuration, where bridge feature is enabled as a module (CONFIG_BRIDGE=m), and the bridge module loads as the system starts. I don't understand who...

View Article

How to access a module variable

I run Arch Linux would need to modify a module variable, but I do not know how to do access the kernel command line (because I understand that is how I should solve this problem)Can you please help me?

View Article


Detect change in usb gadget state

Problem: How can I detect when the gadget is or is not connected to a host from the gadget itself?Background: The g_mass_storage Linux kernel module can be used to provide a mass storage device via a...

View Article

PCI passthrough: vfio-pci ignores ids of devices

I have 3 GPUs in my dual XEON server.I followed instructions on Arch wiki and set up vfio-pci with ids=10de:100c,10de:0e1a:$ modprobe -c | grep vfiooptions vfio_iommu_type1...

View Article


Your kernel headers for kernel 3.10.0-1062.el7.x86_64 cannot be found

I am tring to install nvidia driver by the following command.sudo ./NVIDIA-Linux-x86_64-418.43.run --dkms -sHere I got an error as follows.ERROR: Failed to run `/sbin/dkms build -m nvidia -v 418.43 -k...

View Article

Cannot build kgdboe against kernel headers

I am trying to build kgdboe according to the following tutorial.I am running Ubuntu 20.04 with an updated kernel 5.9.0 as I needed a driver which was not available in stock kernel. I updated the kernel...

View Article


Building ksmbd on Debian Buster (+bpo)

I am trying to build the ksmbd kernel module. I tried the tag version:$ wget https://github.com/namjaejeon/ksmbd/archive/refs/tags/3.2.1.tar.gz$ tar xvfz 3.2.1.tar.gz$ cd ksmbd-3.2.1$ make[...] CC [M]...

View Article

linux kernel compilation error

I got error:make ${BUILD_FLAGS} -j1 modules HOSTCC scripts/basic/fixdep CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh DESCEND objtool CHK include/generated/compile.h LD [M]...

View Article

Module in /etc/modules not loaded at boot

I'm trying to ensure that a driver module ch34x.ko is loaded every time I boot my device so that it correctly identifies and mounts a USB to serial converter I am using.When I mount the module manually...

View Article
Browsing all 1184 articles
Browse latest View live