Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

module_exit(9) [suse man page]

MODULE_EXIT(9)							   Driver Basics						    MODULE_EXIT(9)

NAME
module_exit - driver exit entry point SYNOPSIS
module_exit(x); ARGUMENTS
x function to be run when driver is removed DESCRIPTION
module_exit will wrap the driver clean-up code with cleanup_module when used with rmmod when the driver is a module. If the driver is statically compiled into the kernel, module_exit has no effect. There can only be one per module. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 MODULE_EXIT(9)

Check Out this Related Man Page

FWE(4)							   BSD Kernel Interfaces Manual 						    FWE(4)

NAME
fwe -- Ethernet emulation driver for FireWire SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device firewire device fwe Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_fwe_load="YES" DESCRIPTION
The fwe driver provides non-standard Ethernet emulation over FireWire (IEEE 1394). firewire(4) and fwohci(4) must be configured in the kernel as well. This driver exploits asynchronous stream over IEEE 1394 to carry Ethernet frames. The stream channel can be specified by the hw.firewire.fwe.stream_ch sysctl(8). This driver supports polling(4) as well if it is compiled with the DEVICE_POLLING option. SEE ALSO
arp(4), firewire(4), fwip(4), fwohci(4), netintro(4), ng_ether(4), polling(4), ifconfig(8), kldload(8), sysctl(8) HISTORY
The fwe device driver first appeared in FreeBSD 5.0. AUTHORS
The fwe driver and this manual page were written by Hidetoshi Shimokawa. BUGS
This driver emulates Ethernet in a very adhoc way and it does not reserve a stream channel using an isochronous manager. Note that this driver uses a protocol which is very different from RFC 2734 (IPv4 over IEEE 1394). BSD
July 16, 2005 BSD
Man Page

11 More Discussions You Might Find Interesting

1. Linux

kernel:how to modify and read the tick rate:HZ

hi, one of our customer is facing an issue with jiffies wrap up. on a 32 bit machine, the variable jiffies count upto 472 days. the customer's server was up for 472 days ('uptime') and to reproduce the same, i tried to change the variable HZ in linux-2.6..23.9/include/asm-i386/param.h from... (0 Replies)
Discussion started by: amit4g
0 Replies

2. Linux

Locking around kmem_cache_destroy

Hi There, I want to make sure that kmem_cache_alloc is not called concurrently with kmem_cache_destroy on module exit and I want be able to use GFP_KERNEL for the kmem_cache_alloc calls. Would a read/write lock be good fro this purpose or is there another method I should be using? Regards,... (0 Replies)
Discussion started by: Brendan Kennedy
0 Replies

3. UNIX for Dummies Questions & Answers

Doubt with irq handler.......

Hello, I have develop a driver for my hardware and now, I need to handle a IRQ but I does not work. As I can understand, to handle a irq, it is necessary to make a request_irq(). If the return value is zero, ok, no problem to handle irq. Here is a easy example of my driver: #include... (8 Replies)
Discussion started by: webquinty
8 Replies

4. Programming

Compiling virtual network adapter driver problem (net_device struct)

Hi, I found on linuxgazette.net/93/bhaskaran.html page very useful sample of virtual driver (not connected to real hardware). I try to compile it with no effect. So: I got fresh Ubuntu 9.10 (kernel 2.6.31-14) My source is saved in networkAdapter.c file in /usr/src/myModules directory. I... (21 Replies)
Discussion started by: Chrisdot
21 Replies

5. Programming

Kernel module - How to test if file doesn't exist

Hey, I'm currently getting into some kernel module progamming. As a little exercise I want to read the headers out of an ELF file. My code is very simple, here is the important part: struct file *fp; /* ... */ fp = filp_open("some/file/on/my/pc", O_RDONLY, 0); if(fp == NULL) { ... (15 Replies)
Discussion started by: disaster
15 Replies

6. Programming

Running bin file from a module

Hi I actually wrote a simple module and I need to call a bin file from that module. Could you give me some hints how to do that? (I tried with stdlib.h and 'system()', but cannot call that function from a module). Regards. (28 Replies)
Discussion started by: Chrisdot
28 Replies

7. Programming

Make cannot generate .ko linux kernel module

cannot generate .ko file on my linux, although it can generate module.symvers. But when I copy .c file and Makefile to another linux computer, there's no problem. The strange thing is: make is successfuly executed, and returned 0; make output: make -C /lib/modules/2.6.18-92.el5xen/build ... (4 Replies)
Discussion started by: vistastar
4 Replies

8. Programming

Build Error

I am facing a problem while building the device driver code. I am using suse linux "2.6.31.5-0.1-desktop" on my Laptop. I have copied a folder containing self written device driver files from Mandriva linux to my system having Suse Linux. I copied the entire folder in "/home/netuser/sun/".... (4 Replies)
Discussion started by: rupeshkp728
4 Replies

9. Programming

Wrapper for unix program - urgent help needed

Hello all , i need some help asap i have a program that keeps killing the machine when i did google searches and 2 days later i ran strace it seems the programm keeps making a system call to gettimeofday to i guess increment a counter ? gettimeofday({1347986584, 464904}, NULL) = 0... (6 Replies)
Discussion started by: NetworkLearning
6 Replies

10. Ubuntu

Kernel panics : trying to write / read on tiny tty driver

I'm a beginner to the Linux programming and trying my hands on some device driver examples while practising. The below code (a trimmed down version of tiny_tty.c from ldd3 book) loads perfectly using insmod and I'm able to see it in /proc/tty/drivers , /proc/modules and device nodes are getting... (1 Reply)
Discussion started by: diwsdiwa
1 Replies

11. Ubuntu

Measuring the correctness of ndelay() function.

I wrote this kernel module to test the correctness of ndelay() function. Kernel mdoule: #include <linux/module.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/time.h> #include <linux/delay.h> static int __init initialize(void) { ktime_t start, end; s64... (1 Reply)
Discussion started by: BHASKAR JUPUDI
1 Replies