What is the precision of usleep ?

2001-04-20 Thread Marcus Ramos
Hello, I am using usleep in an application under RH7 kernel 2.4.2. However, when I bring its argument down to 20 miliseconds (20.000 microseconds) or less, this seems to be ignored by the function (or the machine's hw timer), which behaves as if 20 ms where its lowest acceptable value. How can I

Re: Can't find modules after moving to 2.4.2

2001-03-29 Thread Marcus Ramos
our comments. Best Regards, Marcus. Marcus Ramos wrote: > Hello, > > I've moved from kernel 2.2.16 to 2.4.2 (RH7) and its boots OK, except > for the fact that none of the modules in "/etc/modules.conf" are loaded > anymore (although modules were enabled in kernel con

Can't find modules after moving to 2.4.2

2001-03-28 Thread Marcus Ramos
Hello, I've moved from kernel 2.2.16 to 2.4.2 (RH7) and its boots OK, except for the fact that none of the modules in "/etc/modules.conf" are loaded anymore (although modules were enabled in kernel config). In "/lib/modules" I see two directories: 2.2.16 and 2.4.2 (which I assume is the default f

Making changes to 3c90X.c

2001-03-05 Thread Marcus Ramos
Hello, I am developing an application for which I need to make small changes to the source code of 3c90x.c (3com ethernet driver). Indeed, I need to access - and modify - the contents of the packets right before they are sent on the wire. After examining sk_buff.h, function NICSendPacket of 3c90x

Re: Linux device driver writing

2001-02-23 Thread Marcus Ramos
Hello, For Linux you can use the good and complete "Linux Device Drivers" by Alessandro Rubini, O'Reilly, 1998. For other flavors of Unix, I am aware only of old text books of little interest for present systems. Good luck. Marcus. Rahul wrote: > Hi friends, > > I am new to this field of writi

Building a new module from an existing one

2001-02-22 Thread Marcus Ramos
Hello, I plan to make a few changes to 3c90x.c (Ethhernet driver) located at /usr/src/linux-2.2.16/drivers/net, in RH7. Since the correspondent object file 3c90x.o resides in /lib/modules/2.2.16-20/net, I ask: how shall I proceed in order to have the C file properly compiled and placed in the rig

Re: What does "device or resource busy" mean ?

2001-02-14 Thread Marcus Ramos
Hi, For some unknown (to me) reason, this message has to do with X being active. Leaving X causes the module to be correctly loaded. I guess X should be using some resource that my module also wanted to use. Marcus. Marcus Ramos wrote: > Hello, > > When I try to load module ttime.o

What does "device or resource busy" mean ?

2001-02-14 Thread Marcus Ramos
Hello, When I try to load module ttime.o - "insmod ttime.o" - I get the following message: "ttime.o: init_module: Device or resource busy". "lsmod" shows that ttime.o was effectively not loaded. I am using RH7 with kernel 2.2.16-22. Does anyone have a guess on a possible reason for this and how t

Problem with kernel-module version mismatch

2001-02-13 Thread Marcus Ramos
Hello, After compiling files "ttime.c" and "ttime.h", I try to load them into the kernel using the command /sbin/insmod ttime.o. However, the following message suggests that a version conflict has prevented the loading to be performed correctly: "kernel-module version mismatch. ttime.o was comp