[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2014bcab0908110757q5b255dcdm497414d04810c281@mail.gmail.com>
Date: Tue, 11 Aug 2009 23:57:31 +0900
From: 홍신 shin hong <hongshin@...il.com>
To: netdev@...r.kernel.org
Subject: a question on net_device struct
Hi. I have a question while I read the codes in net/core of Linux 2.6.30.4.
'net_device' struct defined in include/linux/netdevice.h has a field
'operstate'.
Is a 'operstate' field is protected by 'dev_base_lock'?
At set_operstate() in net/core/rtnetlink.c, it seems that dev->operstate
is protected by write_lock_bh(&dev_base_lock).
But, in other codes, the read operations to dev->operstate are not
consistently protected by read_lock_bh(&dev_base_lock).
Thank you.
Sincerely
Shin Hong
--
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