From mboxrd@z Thu Jan 1 00:00:00 1970 From: freeman.zhang1992@gmail.com (Freeman Zhang) Date: Fri, 07 Mar 2014 10:34:18 +0800 Subject: how to deal with page In-Reply-To: References: Message-ID: <5319302A.9030409@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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