Re: Mapping non-page aligned data to user
From: Bodo Eggert
Date: Fri Feb 06 2009 - 04:33:26 EST
Vira <sri1369_s@xxxxxxxxx> wrote:
> Is there a way to map a non-page aligned kernel physical address to user
> virtual address? remap_pfn_range and vm_insert_page operate only on
> page-aligned physical addresses.
>
> If there is no such support, would it be too complicated to try out
> writing something on my own to map non-page aligned addresses (the data
> size is under my control - so I can make that a multiple of page size)?
>
> Any suggestions appreciated.
It can only be done using segmented memory, and you don't want that.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/