[pso] Tema3 - Problema rmmod
Orasanu Eduard
edi_o2001 at yahoo.com
Thu Apr 16 14:58:52 EEST 2009
Am gasit pana la urma problema ... m-am grabit :)
Ideea e dupa ce se apleaza add_drive() deja kernel-ul trimite niste request-uri catre modul iar eu nu implementasem inca handler-ul pentru coada.
Netratand acele requesturi, rameneau in pending si deci modulul erau folosit:)
--- On Thu, 4/16/09, Orasanu Eduard <edi_o2001 at yahoo.com> wrote:
> From: Orasanu Eduard <edi_o2001 at yahoo.com>
> Subject: Re: [pso] Tema3 - Problema rmmod
> To: "Proiectarea Sistemelor de Operare" <pso at cursuri.cs.pub.ro>
> Date: Thursday, April 16, 2009, 1:07 AM
>
> Am aplelat del_len_disk() dar ideea e ca nu ajunge sa se
> apeleaze exit-ul modulului.
> Probabil vede ca e o referinta la modul si intoarce direct
> eroarea.
>
> --- On Wed, 4/15/09, Octavian Voicu <octavian.voicu at gmail.com>
> wrote:
>
> > From: Octavian Voicu <octavian.voicu at gmail.com>
> > Subject: Re: [pso] Tema3 - Problema rmmod
> > To: "Proiectarea Sistemelor de Operare" <pso at cursuri.cs.pub.ro>
> > Date: Wednesday, April 15, 2009, 5:20 PM
> > Conform laboratorului ar
> > trebui sa faci un del_gen_disk( ) in
> > module_exit_function.
> >
> >
> > Daca ai pus asta, probabil ai uitat sa eliberezi
> > altceva (pe principiul totul trebuie eliberat in
> ordinea
> > inversa fata de cum le-ai creat) si kernelul stie ca
> inca
> > mai sunt obiecte care depind de modulul tau si nu te
> lasa
> > sa-l descarci.
> >
> >
> >
> > On Thu, Apr 16, 2009 at 12:06 AM,
> > Orasanu Eduard <edi_o2001 at yahoo.com>
> > wrote:
> >
> >
> >
> >
> > Desi inca n-am implementat "open" si
> > "release", dupa ce fac insmod la modulul meu am
> > reference count = 1 si imi da eroare la rmmod:"Module
> > sraid is in use".
> >
> >
> >
> > Am observat ca se intampla lucrul asta cand apelez
> > add_disk(..).
> >
> > Nu merge nici rmmod -f din pacate.
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > pso mailing list
> >
> > pso at cursuri.cs.pub.ro
> >
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
> >
> >
> >
> >
> > --
> > Octavian Voicu
> >
> >
> >
> > -----Inline Attachment Follows-----
> >
> > _______________________________________________
> > pso mailing list
> > pso at cursuri.cs.pub.ro
> > http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
> >
>
>
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
More information about the pso
mailing list