8.15. LockingWe saw in the section "Organization of net_device Structures" that the dev_base list and the two hash tables dev_name_head and dev_name_index are protected by the dev_base_list lock. That lock, however, is used only to serialize accesses to the list and tables, not to serialize changes to the contents of net_device data structures. net_device content changes are taken care of by the Routing Netlink semaphore (rtnl_sem), which is acquired and released with rtnl_lock and rtnl_unlock, respectively.[*] This semaphore is used to serialize changes to net_device instances from:
The net_device data structure includes a few fields used for locking, among them:
For more details on these locks, please refer to Chapter 11. |
Tuesday, November 3, 2009
Section 8.15. Locking
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment