kernels/linux-2.4.0/net/bridge/br_stp.c
/* called under ioctl_lock or bridge lock */
called under ioctl_lock or bridge lock
called under ioctl_lock or bridge lock
struct net_bridge_port *br_get_port(struct net_bridge *br, int port_no)
{
	struct net_bridge_port *p;
	p = br->port_list;
	while (p != NULL) {
		if (p->port_no == port_no)
			return p;
		p = p->next;
	}
	return NULL;
}
struct net_bridge_port * br_get_port ( struct net_bridge * br , int port_no ) { struct net_bridge_port * p ; p = br -> port_list ; while ( p != NULL ) { if ( p -> port_no == port_no ) return p ; p = p -> next ; } return NULL ; }
called under ioctl_lock or bridge lock
called under ioctl_lock or bridge lock