Function report |
Source Code:lib\strnlen_user.c |
Create Date:2022-07-28 07:20:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Do a strnlen, return length of string *with* final '\0'.* 'count' is the user-supplied count, while 'max' is the* address space maximum.* Return 0 for exceptions (which includes hitting the address* space maximum), or 'count+1' if hitting the user-supplied
Proto:static inline long do_strnlen_user(const char __user *src, unsigned long count, unsigned long max)
Type:long
Parameter:
Type | Parameter | Name |
---|---|---|
const char __user * | src | |
unsigned long | count | |
unsigned long | max |
26 | res = 0 |
37 | unsafe_get_user(c, (unsignedlong__user * )src, efault) |
38 | c |= aligned_byte_mask(align) |
40 | cycle |
42 | If Return nonzero if it has a zero Then |
43 | data = prep_zero_mask(c, data, & constants) |
44 | data = create_zero_mask(data) |
49 | If Value for the false possibility is greater at compile time(max <= sizeof(unsignedlong)) Then Break |
67 | efault : |
68 | Return 0 |
Name | Describe |
---|---|
strnlen_user | Get the size of a string in user 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 |