RE: Module programming - Basic query !

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i'm running a 2.4.18 kernel on my machine.
there's a -f option for insmod but there
ai'nt one for rmmod, says invalid option
when i give -f with rmmod.

- /dev/mandeep


-----Original Message-----
From: Jan Hudec [mailto:bulb@ucw.cz]
Sent: Tuesday, March 30, 2004 5:59 PM
To: Mandeep Singh Sandhu
Cc: Amith; kernelnewbies@nl.linux.org
Subject: Re: Module programming - Basic query !


On Tue, Mar 30, 2004 at 17:45:28 +0530, Mandeep Singh Sandhu wrote:
> is there a -f option for rmmod???
> it's not there in the 2.4 series i think!

Sure there is.

> - /dev/mandeep
> 
> 
> -----Original Message-----
> From: Jan Hudec [mailto:bulb@ucw.cz]
> Sent: Tuesday, March 30, 2004 5:43 PM
> To: Amith
> Cc: kernelnewbies@nl.linux.org
> Subject: Re: Module programming - Basic query !
> 
> 
> On Tue, Mar 30, 2004 at 17:14:21 +0530, Amith wrote:
> > ok - proc1  isnt something great. It stores data written to it "echo
> "abcd" >
> > /proc/myfile"  and gives it back when u "cat /proc/myfile" - it
> maintains a buffer of
> > chars internally - thats all and its usecount was one somehow  - i
> wanted to rmmod it -
> > didnt feel like rebooting the mcahine so came remover.c .
> 
> Though I can't currently find where that happens, I'd suspect the
/proc
> code to claim usage of your module if the file is opened. Didn't it
> remain open or somethig like that?
> 
> By the way, ever heared of the -f option to rmmod?
> 
>
------------------------------------------------------------------------
> -------
> 						 Jan 'Bulb' Hudec
> <bulb@ucw.cz>
> 
------------------------------------------------------------------------
-------
						 Jan 'Bulb' Hudec
<bulb@ucw.cz>

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux