skb_shared() definition query?

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

 



Hi All,

While going through skbuff.h i found the inline function
skb_shared(const struct sk_buff  *skb) defined as ...


{
   return atomic_read(&skb_users) != 1;
}


The function checks if the skb buffer is shared between more than one person.

shouldn't this be instead
{
   return atomic_read(&skb_users) > 1;
}

It looks more appropriate, i guess.

What am i missing something here?
The kernel i am using is 2.6.20.1.

Any help?

Thanks in advance
~psr
--
play the game
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux