Re: how to deal with page

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

 



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

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





[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