[BACK]Return to kmap_skb.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs-all / net / core

File: [Development] / linux-2.6-xfs-all / net / core / kmap_skb.h (download)

Revision 1.1, Tue Jan 16 14:53:53 2007 UTC (10 years, 9 months ago) by vapo.longdrop.melbourne.sgi.com
Branch: MAIN
CVS Tags: HEAD

Merge of 2.6.x-xfs-melb:linux:27933a by kenmcd.

  Merge up to 2.6.20-rc4

#include <linux/highmem.h>

static inline void *kmap_skb_frag(const skb_frag_t *frag)
{
#ifdef CONFIG_HIGHMEM
	BUG_ON(in_irq());

	local_bh_disable();
#endif
	return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ);
}

static inline void kunmap_skb_frag(void *vaddr)
{
	kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ);
#ifdef CONFIG_HIGHMEM
	local_bh_enable();
#endif
}