kernels/linux-2.4.0/include/linux/skbuff.h
/**
 *	__skb_purge - empty a list
 *	@list: list to empty
 *
 *	Delete all buffers on an &sk_buff list. Each buffer is removed from
 *	the list and one reference dropped. This function does not take the
 *	list lock and the caller must hold the relevant locks to use it.
 */


Delete all buffers on an &sk_buff list. Each buffer is removed from
the list and one reference dropped. This function does not take the
list lock and the caller must hold the relevant locks to use it.
Delete all buffers on an &sk_buff list . Each buffer is removed from the list and one reference dropped . This function does not take the list lock and the caller must hold the relevant locks to use it .
static inline void __skb_queue_purge(struct sk_buff_head *list)
{
	struct sk_buff *skb;
	while ((skb=__skb_dequeue(list))!=NULL)
		kfree_skb(skb);
}
static inline void __skb_queue_purge ( struct sk_buff_head * list ) { struct sk_buff * skb ; while ( ( skb = __skb_dequeue ( list ) ) != NULL ) kfree_skb ( skb ) ; }
__skb_purge - empty a list
      @list: list to empty
__skb_purge - empty a list @list : list to empty