lib/stp.c
/* Returns the port connecting 'stp' to the root bridge, or a null pointer if
 * there is no such port. */
Returns the port connecting 'stp' to the root bridge, or a null pointer if
there is no such port.
Returns the port connecting ' stp ' to the root bridge or a null pointer if there is no such port .
struct stp_port *
stp_get_root_port(struct stp *stp)
{
    struct stp_port *port;
    ovs_mutex_lock(&mutex);
    port = stp->root_port;
    ovs_mutex_unlock(&mutex);
    return port;
}
struct stp_port * stp_get_root_port ( struct stp * stp ) { struct stp_port * port ; ovs_mutex_lock ( & mutex ) ; port = stp -> root_port ; ovs_mutex_unlock ( & mutex ) ; return port ; }
Returns the port connecting 'stp' to the root bridge, or a null pointer if
 there is no such port.
Returns the port connecting ' stp ' to the root bridge or a null pointer if there is no such port .