/* Release all memory associated with X.25 neighbour structures.  */
void __exit x25_link_free(void)
/* Release all memory associated with X.25 neighbour structures.  */
void __exit x25_link_free(void)
{
	struct x25_neigh *nb;
	struct list_head *entry, *tmp;
	write_lock_bh(&x25_neigh_list_lock);
	list_for_each_safe(entry, tmp, &x25_neigh_list) {
		nb = list_entry(entry, struct x25_neigh, node);
		__x25_remove_neigh(nb);
	}
	write_unlock_bh(&x25_neigh_list_lock);
}