0
votes
1answer
67 views

linux/module.h No such file or Directory

For my thesis I am creating a Manet using the protocol ARAN. To install the protocol I'm using this manual, but the first step, the creation of trace_route, I received errors such as: ...
2
votes
2answers
36 views

How to send a “signal” from kernel module to user-space application?

I have a Linux kernel module which contains the interrupt handler, and would like to somehow notify the user-space application after the interrupt was handled. Please tell me, how to do it?
0
votes
0answers
22 views

netfilter amended packet get “no route to host ” error

I had a module which echo back UDP packets to client. hooked by a NF_INET_PRE_ROUTING netfilter hooks. iph = ip_hdr(skb); iptmp = iph->saddr; iph->saddr = iph->daddr; iph->daddr = iptmp; ...
-3
votes
1answer
66 views

how to build a module from *.c file without using a makefile for linux

I am learning Linux Device Drivers. In that I am learning "compiling and loading" chapter. There I have got a doubt that is it possible to compile a *.c file and create a *.ko file without using ...
0
votes
1answer
36 views

Kernel module with multiple files - unknown symbol

Hello stackoverflowers :) For the last several hours I've been trying to compile+load a multiple file module. The compilation emits a strange warning and the module fails to load. Here are the ...
0
votes
1answer
400 views

insmod: init_module failed (Exec format error)

I'm able to compile kernel module for Galaxy S4 Kernel 3.4.xx but I get following errors during module insertion. could someone please shed some light on what's missing here. The kernel module is a ...
-1
votes
0answers
32 views

How to read thread context from kernel module

I can intercept pagefaults in my kernel module(linux). I need to read ESP register, which the process had before switching the context. How can i do it? I tried current->thread.sp, but it doesn't ...
0
votes
1answer
25 views

Unknown symbol dentry_path

I'm using the method dentry_path in my kernel module, compilation work fine but when loading the kernel module I go the error message: Error: could not insert module my_mod.ko: Unknown symbol in ...
-3
votes
1answer
51 views

removing from the output of NETSTAT

I am new here. So I am developing a Linux Kernel Module, and want to hide an open socket on a specific port number from the output of sudo netstat -nap What is the approach that I should take? I ...
0
votes
0answers
84 views

kernel module Vs. user-space application which one is faster?

Is it true to say that if I need fast implementation and faster runtime I should implement my code in a kernel module ? Or is it unnecessary true to say that and the same code using ioctls and ...
0
votes
0answers
13 views

How to find the scsi_device

My target is to write module on Linux 2.6.32 that uses one of my hard drives. I want to use the scsi_ioctl function that placed in this link. I don't know how to pass my hard drive to it in the struct ...
0
votes
2answers
93 views

Module can import at console, but not within script

I am having a strange problem when I run a script, I can not load pymongo, but it is available when I run the hashbang interpreter (/usr/bin/env python). The original call import pymongo was buried ...
1
vote
2answers
62 views

Make proc available to all modulefiles?

I'm using modules to manage software. I'm trying to set up the environment so that a certain function can be called from any modulefile without each file having to source the proc definition. ...
2
votes
1answer
545 views

what do these kernel panic errors mean?

I insmod a kernel module on ARM platform and I get a kernel panic which causes this three errors to be printed to screen Unhandled fault: external abort on non-linefetch (0x008) Unhandled fault: ...
0
votes
0answers
143 views

Python module not installing correctly (linux)

I've been learning python over the past couple of days from Head First Python. I've reached a point where I have to build a distribution package of a module I've made, called nester, and install it ...
1
vote
2answers
211 views

How to pass parameters from makefile to Linux kernel module source code

I have the source code: #include <linux/module.h> #include <linux/kernel.h> int init_module(void) { printk(KERN_INFO "Hello world %i\n", BUILD_NUMBER); return 0; } void ...
3
votes
2answers
87 views

Suspend the program execution until interrupt is handled - how to achieve that?

I have created a kernel module, which handles interrupts. Also, there is a C program. This program causes interrupts during its execution. When the interrupt is coming, the program should be ...
1
vote
1answer
439 views

Simple interrupt handler: request_irq returns error code -22

I am writing a simple kernel module, which could register an interrupt and handle it. However, when I try to register interrupt by calling the request_irq function, it returns error code -22 : ...
0
votes
1answer
80 views

Linux kernel alloc cache to remove const warning

My goal is to write a fonction in a kernel module that allow to obtain root access. At original time I've got this : struct task_struct *cur_task; struct cred *credz; /*obtain root access*/ ...
1
vote
0answers
86 views

Linux Kernel Module / Protocol Registration

My question is regarding Linux Kernel Module Programming, AF Registration, and Protocol Registration (e.g. AF_INET , sock_stream). Goals: I want to create a new Address Family and register it in ...
0
votes
1answer
44 views

Upgrade a specific Linux Kernel Subsystem?

Is it possible to upgrade only a specific sub-system, say I2C, of the Linux Kernel. For example: Is it possible to include "Support for multiplexed I2C bus topologies (introduced in Kernel 2.6.36)" ...
1
vote
0answers
120 views

Debugging kernel hang because of IOCTL calls

I am trying to make a kernel module which is working on 2.6.32 kernel to work on 3.6 kernel. We use IOCTL calls to update structures in Linux Kernel Module. These calls are working fine in 2.6.32 ...
0
votes
1answer
434 views

linux i2c driver for pandaboard

I am trying to write linux i2c drivers for omap4460 panda board. Interfacing Hmc5883l sennsor to omap through i2c interface. Do I need to write only the client diver or both client and bus driver. I ...
0
votes
2answers
180 views

Task owner pid in a Linux kernel module when executed in swapper

Given a task instance having pid 0 and comm "swapper/0", how to get the owner pid ? ==EDIT== This happens using Netfilter hooks.
0
votes
1answer
56 views

module insertion in beagle board

I am trying to insert a .ko module to beagleboard c3. I cross compiled the module using arm-linux-gnueabi-gcc. But on inserting the module to beagle board( having linux 2.6.28-OMAP1) using insmod , ...
0
votes
1answer
47 views

Beagleboard module insertion error

Can you guys help me... I am trying to insert a .ko file to beagleboard C3. When I do insmod it is showing an error saying "invalid module format". What could be the reason? I have already cross ...
2
votes
2answers
312 views

Linux' hrtimer - microsecond precision?

Is it possible to execute tasks on a Linux host with microsecond precision? I.e., I'd like to execute a task at a specific instant of time. I know, Linux is no real-time system but I'm searching for ...
-1
votes
1answer
50 views

Finding the built-in modules/packages that comes with java [closed]

I am trying to find the below details on Linux How to find whether Java is installed or not What are the built-in modules or packages that Java comes by default After finding the built-in modules, ...
0
votes
1answer
89 views

custom apache2 module will not load with error message “Can't locate API module structure”

I'm a windows developer but now trying to build a very simple apache2 module on linux using apxs2 tool as described in this article: ...
2
votes
1answer
64 views

Is it possible to have 2 kernel module linked to the same /dev/device?

I want to simulate an expensive device by a software mockup (we call it (B)) interacting with /dev/device in place of the real device Currently a kernel module already exists to manage the real ...

1 2 3 4 5 7
15 30 50 per page