Function report |
Source Code:lib\usercopy.c |
Create Date:2022-07-28 06:25:24 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:heck_zeroed_user: check if a userspace buffer only contains zero bytes*@from: Source address, in userspace
Proto:int check_zeroed_user(const void __user *from, size_t size)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const void __user * | from | |
size_t | size |
55 | If Value for the false possibility is greater at compile time(size == 0) Then Return 1 |
61 | If Not user_access_begin(from, size) Then Return -EFAULT |
64 | unsafe_get_user(val, (unsignedlong__user * )from, err_fault) |
65 | If align Then val &= ~aligned_byte_mask(align) |
69 | If Value for the false possibility is greater at compile time(val) Then Go to done |
75 | unsafe_get_user(val, (unsignedlong__user * )from, err_fault) |
78 | If size < sizeof(unsignedlong) Then val &= aligned_byte_mask(size) |
81 | done : |
82 | user_access_end() |
83 | Return val == 0 |
84 | err_fault : |
85 | user_access_end() |
86 | Return -EFAULT |
Name | Describe |
---|---|
test_check_nonzero_user | |
copy_struct_from_user | py_struct_from_user: copy a struct from userspace*@dst: Destination address, in kernel space |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |