Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at c9a28fa7b9ac19b676deefa0a171ce7df8755c08 19 lines 360 B view raw
1#include <linux/highmem.h> 2 3static inline void *kmap_skb_frag(const skb_frag_t *frag) 4{ 5#ifdef CONFIG_HIGHMEM 6 BUG_ON(in_irq()); 7 8 local_bh_disable(); 9#endif 10 return kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ); 11} 12 13static inline void kunmap_skb_frag(void *vaddr) 14{ 15 kunmap_atomic(vaddr, KM_SKB_DATA_SOFTIRQ); 16#ifdef CONFIG_HIGHMEM 17 local_bh_enable(); 18#endif 19}