I have a program that is meant to modify the COM irq (3).

        I have a protocol simulator on com0, and my program doesn't seam to
work. So I've modified the output of the program to /dev/rtf1. When I
start the program, there is no output on rtf1 fifo, and I don't
understand why...
You have the source of my module here.
Thenk you.

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <linux/cons.h>
#include <asm/io.h>
#include <asm/rt_irq.h>
#include <rtl_fifo.h>

#define IRQ 3

void handler(void) {
        rtf_put(1, "test\n", 5);
}


int init_module(void){
        rtf_create(1, 4000);
        request_RTirq(IRQ,handler);
        return 0;
}


void cleanup_module(void){
        free_RTirq(IRQ);
        rtf_destroy (1);
}
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to