函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\thread_info.h Create Date:2022-07-27 06:39:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_object_size

函数原型:static inline void check_object_size(const void *ptr, unsigned long n, bool to_user)

返回类型:void

参数:

类型参数名称
const void *ptr
unsigned longn
boolto_user

NULL

调用者
名称描述
strncpy_from_user复制用户字符串
check_copy_size
__copy_from_user_inatomicArchitectures should provide two primitives (raw_copy_{to,from}_user())* and get rid of their private instances of copy_{to,from}_user() and* __copy_{to,from}_user{,_inatomic}().* raw_copy_{to,from}_user(to, from, size) should copy up to size bytes and
__copy_from_user
__copy_to_user_inatomic__copy_to_user_inatomic: - Copy a block of data into user space, with less checking.*@to: Destination address, in user space.*@from: Source address, in kernel space.*@n: Number of bytes to copy.* Context: User context only.
__copy_to_user