函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\crypto.c Create Date:2022-07-29 10:56:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:scrypt_decrypt_pagecache_blocks() - Decrypt filesystem blocks in a pagecache page*@page: The locked pagecache page containing the block(s) to decrypt*@len: Total size of the block(s) to decrypt. Must be a nonzero* multiple of the filesystem's block size.

函数原型:int fscrypt_decrypt_pagecache_blocks(struct page *page, unsigned int len, unsigned int offs)

返回类型:int

参数:

类型参数名称
struct page *page
unsigned intlen
unsigned intoffs
240  inode等于host
241  blockbits等于i_blkbits
242  blocksize等于1左移blockbits
243  lblk_num等于 Our offset within mapping. 左移PAGE_SHIFT determines the page size blockbits位的值加offs右移blockbits位的值
248  如果WARN_ON_ONCE(!PageLocked(page))则返回:负EINVAL
251  如果WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))则返回:负EINVAL
254 i小于offslen循环
255  err等于Encrypt or decrypt a single filesystem block of file contents
257  如果err则返回:err
260  返回:0
调用者
名称描述
fscrypt_decrypt_bio