atomic_read 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.

The kernel i am using is 2.6.20.1.
googling didnt give much answers to this anyway.

Any help.

Thanks in advance
~psr
--
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux