函数逻辑报告 |
Source Code:fs\crypto\crypto.c |
Create Date:2022-07-29 10:56:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:struct page *fscrypt_encrypt_pagecache_blocks(struct page *page, unsigned int len, unsigned int offs, gfp_t gfp_flags)
返回类型:struct page
参数:
类型 | 参数 | 名称 |
---|---|---|
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 | 如果WARN_ON_ONCE(!PageLocked(page))则返回:错误号 |
173 | 如果WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))则返回:错误号 |
177 | 如果非ciphertext_page则返回:错误号 |
184 | 如果err则 |
190 | set_page_private(ciphertext_page, (unsignedlong)page) |
191 | 返回:ciphertext_page |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |