Re: How to do DIRECT IO on kernel buffer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rajat,

On Mon, Oct 18, 2010 at 1:14 PM, Rajat Sharma <fs.rajat@xxxxxxxxx> wrote:
> Greg,
>
> okay I give you an example, currently ecryptfs does not support DIRECT IO
> operation, if it wants to encrypt data in kernel buffers and since file was
> opened in DIRECT IO mode, the lower filesystem should not complain about
> kernel buffers

Not sure if it's relevant, but this article:
<http://www.linuxjournal.com/article/8110>

explains how you can do I/O from within kernel space.

Of particular note are the calls to set_fs/get_fs. These calls modify
the address space in such a way that copy_to/from_user will now work
on kernel buffers.

I'm pretty sure that this is NOT a recoemmended practice, but I
figured I'd throw it out there.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux