Replaces snoopers with an atomic
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jan 2014 22:00:27 +0000 (14:00 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jan 2014 22:00:27 +0000 (14:00 -0800)
commit5066c112ed6eb0532bccb13850945ca86ebef8d7
tree61ef190dbafacd7da745a1676bc4342b12345135
parent6cc98ef80b4349c8fd8c889bf2a0f2d38369e885
Replaces snoopers with an atomic

Instead of a kref.  We shouldn't use a kref, since we don't expect to do
anything when we put the final reference back.  Also, you'll panic when
you kref_get something with a ref == 0.
kern/include/ip.h
kern/src/net/devip.c
kern/src/net/pktmedium.c