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 takes the list
 *	lock and is atomic with respect to other list locking functions.
 */


Delete all buffers on an &sk_buff list. Each buffer is removed from
the list and one reference dropped. This function takes the list
lock and is atomic with respect to other list locking functions.
Delete all buffers on an &sk_buff list . Each buffer is removed from the list and one reference dropped . This function takes the list lock and is atomic with respect to other list locking functions .
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