| Function report | 
| Source Code: lib\strnlen_user.c | Create Date:2022-07-28 07:20:15 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Get the size of a string in user space
Proto:long strnlen_user(const char __user *str, long count)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char __user * | str | |
| long | count | 
| 96 | If Value for the false possibility is greater at compile time(count <= 0) Then Return 0 | 
| 99 | max_addr = user_addr_max() | 
| 101 | If Value is more likely to compile time(src_addr < max_addr) Then | 
| 112 | If user_access_begin(str, max) Then | 
| 114 | user_access_end() | 
| 115 | Return retval | 
| 118 | Return 0 | 
| Name | Describe | 
|---|---|
| fetch_store_strlen | Return the length of string -- including null terminal byte | 
| strndup_user | strndup_user - duplicate an existing string from user space*@s: The string to duplicate*@n: Maximum number of bytes to copy, including the trailing NUL.* Return: newly allocated copy of @s or an ERR_PTR() in case of error | 
| create_elf_tables | |
| create_elf_fdpic_tables | present useful information to the program by shovelling it onto the new* process's stack | 
| create_flat_tables | reate_flat_tables() parses the env- and arg-strings in new user* memory and creates the pointer tables from them, and puts their* addresses on the "stack", recording the new stack pointer value. | 
| 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 |