kernels/linux-2.4.0/mm/highmem.c
/*
 * Simple bounce buffer support for highmem pages.
 * This will be moved to the block layer in 2.5.
 */
Simple bounce buffer support for highmem pages.
This will be moved to the block layer in 2.5.
Simple bounce buffer support for highmem pages . This will be moved to the block layer in 2 . 5 .
static inline void copy_from_high_bh (struct buffer_head *to,
			 struct buffer_head *from)
{
	struct page *p_from;
	char *vfrom;
	unsigned long flags;
	p_from = from->b_page;
	__save_flags(flags);
	__cli();
	vfrom = kmap_atomic(p_from, KM_BOUNCE_WRITE);
	memcpy(to->b_data, vfrom + bh_offset(from), to->b_size);
	kunmap_atomic(vfrom, KM_BOUNCE_WRITE);
	__restore_flags(flags);
}
static inline void copy_from_high_bh ( struct buffer_head * to , struct buffer_head * from ) { struct page * p_from ; char * vfrom ; unsigned long flags ; p_from = from -> b_page ; __save_flags ( flags ) ; __cli ( ) ; vfrom = kmap_atomic ( p_from , KM_BOUNCE_WRITE ) ; memcpy ( to -> b_data , vfrom + bh_offset ( from ) , to -> b_size ) ; kunmap_atomic ( vfrom , KM_BOUNCE_WRITE ) ; __restore_flags ( flags ) ; }
Simple bounce buffer support for highmem pages.
Simple bounce buffer support for highmem pages .
/*
	 * Since this can be executed from IRQ context, reentrance
	 * on the same CPU must be avoided:
	 */