The list of net devices is protected by the netlink mutex locking and unlocking functions, rtnl_lock and
rtnl_unlock
The list of net devices is protected by the netlink mutex locking and unlocking functions, rtnl_lock and rtnl_unlock. The
list of devices should not be manipulated without locking because if the locks are not used, it is possible for the device list to become corrupted or two
devices that try to register in parallel to be assigned the same name.
本文介绍了Netlink Mutex锁定和解锁函数rtnl_lock和rtnl_unlock如何保护网络设备列表。若不使用这些锁,则可能导致设备列表损坏或并发注册过程中多个设备被分配相同的名称。
759

被折叠的 条评论
为什么被折叠?



