linux中的rtnl_lock

来源:互联网 发布:java多线程异步处理 编辑:程序博客网 时间:2024/06/08 10:36
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. 
原创粉丝点击