Re: Bug in 2.1.130 Modulesupport?

Dr_PcI (dr_pci@SpUnFa.DhiS.Org)
Wed, 2 Dec 1998 09:21:07 +0100


On mar, dic 01, 1998 at 04:04:50 +0100, Stefan Fischer wrote:
> Hi,
> I'm porting a driver for a transputer link adapter (B004 for
> INMOS-Transputer) to Kernels >=2.1.130. as a module.
> Now the problem is, that the use-counter gets confused, when calling
> commands with system(...) with an opened device /dev/link.
> after the call the Counter displayed with lsmod is decreased by 2.
> Without calling system(....) the counter is after closing the device
> at the value 0 and the module is removable.
> Calling system produces the value -2 which makes the module unremoveble.
>
> Perhaps someone has an idea....

it also happen to me..

i'm doing a buggy module which uses an also buggy device.. for education
purposes.. and i must to use "MOD_INC_USE_COUNT;" two times.. w/o doing it..
the module seems unloadable..

AFAIK it seems like module_release() its called after just after
module_open().. but i dont know why..

P.S: hey HoraPe.. thx for help.. ;)

-- 
--
<===========================================================================+
|Dr_PcI...					   (dr_pci@SpUnFa.DhiS.Org) |
|         Freelance Entertainment Co. ltd. (c) 1998			    |
|									    |
| THE WOLF			    |          (dr_pci@MiNIX.DhiS.Org)      |
| Well, let's not start suckin' each|	  (dr_pci@QNx.DhiS.Org)             |
| other's dicks quite yet.	    |		    			    |
| (c) 1993 Q. Tarantino.	    |                   LiNUX USER NO. 88620|
+===========================================================================>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/