Re: Mapping memory between kernel and user space

From: Ankita Garg
Date: Tue Feb 15 2011 - 00:54:43 EST


On Wed, Feb 09, 2011 at 06:45:42PM -0500, Sri Ram Vemulpali wrote:
> Hi all,
>
> How do I map some space between kernel and user space. Can anyone
> point me in to right direction. I was trying to map the packets from
> my netfilter function to kernel user space, to avoid over head of
> copying. Thanks in advance.
>

You can take a look at remap_pfn_range() routine when implementing mmap
in your driver.

--
Regards,
Ankita Garg (ankita@xxxxxxxxxx)
Linux Technology Center
IBM India Systems & Technology Labs,
Bangalore, India
--
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/