Re[2]: [pso] list_head si kfree()

Andrei Costin pso@cursuri.cs.pub.ro
Sat, 27 Mar 2004 15:20:53 -0800 (PST)


AC>>         list_for_each(tmp, &the_list)

AC>>         {

AC>>                 mu = list_entry(tmp, struct monitor_unit, mu_list);

AC>>                 printk( "i=(%d)\n", mu->mu_i );

AC>>                 list_del( &(mu->mu_list) );     <------- Da mereu segmentation fault

AC>>                 kfree(mu);                      <------- Da mereu segmentation fault

AC>>         }



D> Read the source, Luke!
   "I did, Linus!" :) (words of wisdom)


D> Am avut exact aceeasi problema, si a devenit evident de ce apare in

D> momentul in care m-am uitat prin linux/list.h

10x pentru ajutor. Apropo, mi-a raspuns si Tavi mai inainte, si 10x to
that situation am si terminat tema :D

"./test | grep -c 'passed'" => 115 - "FC Passed" conduce detasat, thanx God
"./test | grep -c 'failed'" => 0

Good luck to You too, Luke !


D> Uite aici.

D> http://atlantis.cs.pub.ro/lxr/http/source/include/linux/list.h

Luke, daca ai sti cite m-am invartit pe acolo :) prin surse -
especially in list.h

D> Sau raspunsul scurt: foloseste functiile (adica define-urile) list_for_each_safe() sau

D> list_for_each_entry_safe().

Pentru un raspuns scurt, si o intrebare scurta :)) - de ce totusi
exista macros cu _safe si fara _safe - give me an unbeatable reason :)!

Noapte buna OR spor la treaba, you make the choice!

Best regards and respect,
 Andrei Costin (mailto:zveriu_biz@yahoo.com)

___________________________________________
Manifest - ".M D - My Domain!" - by .Zveriu.
             y o
               m
               a
               i
               n


__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html