Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\maccess.c Create Date:2022-07-28 14:07:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:long strnlen_unsafe_user(const void __user *unsafe_addr, long count)

Type:long

Parameter:

TypeParameterName
const void __user *unsafe_addr
longcount
268  old_fs = get_fs()
271  set_fs(USER_DS)
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 = Get the size of a string in user space
274  pagefault_enable()
275  set_fs(old_fs)
277  Return ret