/* Functions for getting the pages from kernel memory.  */
static void km_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
/* Functions for getting the pages from kernel memory.  */
static void km_get_page(struct dpages *dp, struct page **p, unsigned long *len, unsigned *offset)
{
	*p = virt_to_page(dp->context_ptr);
	*offset = dp->context_u;
	*len = PAGE_SIZE - dp->context_u;
}