Re: kernel list / container_of aka list_entry question

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

 



On Sunday 25 December 2005 18:24, you wrote:
> > The second question is why the following code generates errors
> > during compilation. list.h header file is included.
> >
> >         struct atheros_priv *priv = ieee80211_priv(dev); /* line number 141 */
> >         struct list_head *iterator;
> >
> >
> >         list_for_each(iterator, &priv->rxbuf.list) {
> >                 struct ath_buf *bf = list_entry(iterator, (struct ath_buf), list);
                                                              ^              ^
Remove the parenthesis.

-- 
Greetings Michael.

Attachment: pgpvLCSQGQioA.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux