[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTim7LQ65RWvy+TQ+HtwjJM89zt4g12H6mFinQT0v@mail.gmail.com>
Date: Mon, 26 Jul 2010 17:00:15 +0300
From: Neshama Parhoti <pneshama@...il.com>
To: netdev@...r.kernel.org
Subject: lock_sock or sock_hold ?
hello everyone,
can you please be kind and help me understand the differences between
lock_sock and sock_hold ?
i can see that lock_sock takes a spin lock (bh) to mark owned = 1, and
then takes a mutex, whereas sock_hold only increases the atomic
refcnt.
but how do i know which of them I should use ?
i'm puzzled as to when should those two different APIs be used..
thank you a lot
~pnesh
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists