函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\maccess.c Create Date:2022-07-27 15:30:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:strnlen_unsafe_user: - Get the size of a user string INCLUDING final NUL.*@unsafe_addr: The string to measure.*@count: Maximum count (including NUL)* Get the size of a NUL-terminated string in user space without pagefault.

函数原型:long strnlen_unsafe_user(const void __user *unsafe_addr, long count)

返回类型:long

参数:

类型参数名称
const void __user *unsafe_addr
longcount
268  old_fs等于获取当前进程地址空间上限()
271  设置寄存器值(fs)
272  These routines enable/disable the pagefault handler. If disabled, it will* not take any locks and go straight to the fixup table.* User access methods will not sleep when called from a pagefault_disabled()* environment.
273  ret等于用户字符串长度
274  pagefault_enable()
275  设置寄存器值(fs)
277  返回:ret
调用者
名称描述
fetch_store_strlen_userReturn the length of string -- including null terminal byte