is there a -f option for rmmod??? it's not there in the 2.4 series i think! - /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> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/