title: How to avoid copy_from_user and copy_to_user in linux device driver
body: <p>I am writing a device driver which uses character device file to copy data from user space buffer which is allocated by using <code>malloc</code> to kernel buffer. Currently using <code>copy_from_user</code> api to copy user data to kernel buffer. Trying to find a way to avoid data copying between user and kernel spaces. Is there any way to access user space buffer (allocated by <code>malloc</code>) in kernel space without using <code>copy_from_user</code>?</p>