kernels/linux-2.4.0/net/ipv4/netfilter/ip_nat_standalone.c
/* Noone stores the protocol anywhere; simply delete it. */
Noone stores the protocol anywhere; simply delete it.
Noone stores the protocol anywhere ; simply delete it .
void ip_nat_protocol_unregister(struct ip_nat_protocol *proto)
{
	WRITE_LOCK(&ip_nat_lock);
	LIST_DELETE(&protos, proto);
	WRITE_UNLOCK(&ip_nat_lock);
	br_write_lock_bh(BR_NETPROTO_LOCK);
	br_write_unlock_bh(BR_NETPROTO_LOCK);
	MOD_DEC_USE_COUNT;
}
void ip_nat_protocol_unregister ( struct ip_nat_protocol * proto ) { WRITE_LOCK ( & ip_nat_lock ) ; LIST_DELETE ( & protos , proto ) ; WRITE_UNLOCK ( & ip_nat_lock ) ; br_write_lock_bh ( BR_NETPROTO_LOCK ) ; br_write_unlock_bh ( BR_NETPROTO_LOCK ) ; MOD_DEC_USE_COUNT ; }
Noone stores the protocol anywhere; simply delete it.
Noone stores the protocol anywhere ; simply delete it .
/* Someone could be still looking at the proto in a bh. */