lkml.org 
[lkml]   [2001]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectatomic_set(skb_datarefp(skb),1)

Hi,
I am extremely sorry to bother this group with this message. But I
am really unable to understand the following. So it would be very kind of
you if you clarify this.

In 2.2.16, in the function alloc_skb(),
atomic_set(skb_datarefp(skb),1) is there. Now skb_datarefp() returns
skb->end casted in (atomic_t *) type. And atomic_set here setting it to
1.

But before atomic_set() is called in alloc_skb(), skb->end is set to
data+size. Now my question is what is the purpose of calling atomic_set()?

regards
sourav

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:1.150 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site