struct net_device locking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I could not see any locking being done with "struct net_device" at all even
tough there are many read+write accesses to non-atomic variables. For example:

Changing mac addresses:
user space netlink socket call to set IFLA_ADDRESS
http://lxr.linux.no/linux+v3.1.6/net/core/rtnetlink.c#L1521
http://lxr.linux.no/linux+v3.1.6/net/core/rtnetlink.c#L1322
call to device, e.g. http://lxr.linux.no/linux+v3.1.6/drivers/net/e100.c#L2195

Sending an arp response:
http://lxr.linux.no/linux+v3.1.6/net/ipv4/arp.c#L859

Any ideas/pointers?

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux