Function report |
Source Code:fs\crypto\crypto.c |
Create Date:2022-07-28 20:23:31 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:scrypt_encrypt_pagecache_blocks() - Encrypt filesystem blocks from a pagecache page*@page: The locked pagecache page containing the block(s) to encrypt*@len: Total size of the block(s) to encrypt. Must be a nonzero* multiple of the filesystem's block size.
Proto:struct page *fscrypt_encrypt_pagecache_blocks(struct page *page, unsigned int len, unsigned int offs, gfp_t gfp_flags)
Type:struct page
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
unsigned int | len | |
unsigned int | offs | |
gfp_t | gfp_flags |
165 | lblk_num = ( Our offset within mapping. << PAGE_SHIFT determines the page size - blockbits ) + (offs >> blockbits) |
170 | If WARN_ON_ONCE(!PageLocked(page)) Then Return ERR_PTR( - EINVAL) |
173 | If WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize)) Then Return ERR_PTR( - EINVAL) |
177 | If Not ciphertext_page Then Return ERR_PTR( - ENOMEM) |
184 | If err Then |
190 | set_page_private(ciphertext_page, (unsignedlong)page) |
191 | Return ciphertext_page |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |