kernel/net/smc/smc_pnet.c
/* Remove and delete all pnetids from pnet table.
 */
Remove and delete all pnetids from pnet table.
Remove and delete all pnetids from pnet table .
static int smc_pnet_flush(struct sk_buff *skb, struct genl_info *info)
{
	struct smc_pnetentry *pnetelem, *tmp_pe;
	write_lock(&smc_pnettable.lock);
	list_for_each_entry_safe(pnetelem, tmp_pe, &smc_pnettable.pnetlist,
				 list) {
		list_del(&pnetelem->list);
		dev_put(pnetelem->ndev);
		kfree(pnetelem);
	}
	write_unlock(&smc_pnettable.lock);
	return 0;
}
static int smc_pnet_flush ( struct sk_buff * skb , struct genl_info * info ) { struct smc_pnetentry * pnetelem , * tmp_pe ; write_lock ( & smc_pnettable . lock ) ; list_for_each_entry_safe ( pnetelem , tmp_pe , & smc_pnettable . pnetlist , list ) { list_del ( & pnetelem -> list ) ; dev_put ( pnetelem -> ndev ) ; kfree ( pnetelem ) ; } write_unlock ( & smc_pnettable . lock ) ; return 0 ; }
Remove and delete all pnetids from pnet table.
Remove and delete all pnetids from pnet table .