kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* how to deal with page
@ 2014-03-06  9:20 于运超
  2014-03-07  2:34 ` Freeman Zhang
  0 siblings, 1 reply; 2+ messages in thread
From: 于运超 @ 2014-03-06  9:20 UTC (permalink / raw)
  To: kernelnewbies

Hi. nowdays i am studing Transparent encryption in linux system. when
reading file needs do_generic_file_read function decrpty file. but in
do_generic_file_read
Physical data using struct page ,how did i use page decrpty.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140306/6a60af08/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* how to deal with page
  2014-03-06  9:20 how to deal with page 于运超
@ 2014-03-07  2:34 ` Freeman Zhang
  0 siblings, 0 replies; 2+ messages in thread
From: Freeman Zhang @ 2014-03-07  2:34 UTC (permalink / raw)
  To: kernelnewbies

Hi,

 2014-03-06 17:20 ???:
> Hi. nowdays i am studing Transparent encryption in linux system. when
> reading file needs do_generic_file_read function decrpty file. but in
> do_generic_file_read Physical data using struct page ,how did i use
> page decrpty.
Maybe you need to do en/decryption in the address_space operations,
which is used with struct page. The do_generic_file_read will evoke the
page->mapping->a_ops->readpage, and the readpage is  one of the
address_space operations. So I guess that's what you want.
Hope this can help!



Regards,
Freeman Zhang

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-07  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-06  9:20 how to deal with page 于运超
2014-03-07  2:34 ` Freeman Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).