Function report |
Source Code:lib\bitmap.c |
Create Date:2022-07-28 06:20:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__bitmap_parse - convert an ASCII hex string into a bitmap
Proto:int __bitmap_parse(const char *buf, unsigned int buflen, int is_user, unsigned long *maskp, int nmaskbits)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | buf | |
unsigned int | buflen | |
int | is_user | |
unsigned long * | maskp | |
int | nmaskbits |
396 | bitmap_zero(maskp, nmaskbits) |
398 | nchunks = nbits = totaldigits = c = 0 |
399 | Do |
400 | chunk = 0 |
401 | ndigits = totaldigits |
406 | If is_user Then |
407 | If Get a simple variable from user space, with less checking(c, ubuf++) Then Return -EFAULT |
412 | buflen-- |
413 | If Note: isspace() must return false for %NUL-terminator (c) Then Continue |
421 | If totaldigits && c && Note: isspace() must return false for %NUL-terminator (old_c) Then Return -EINVAL |
436 | If chunk & ~((1UL << Bitmap printing & parsing functions: first version by Nadia Yvette Chambers,* second version by Paul Jackson, third by Joe Korty. - 4 ) - 1) Then Return -EOVERFLOW |
439 | chunk = chunk << 4 | hex_to_bin(c) |
440 | totaldigits++ |
442 | If ndigits == totaldigits Then Return -EINVAL |
449 | nchunks++ |
455 | Return 0 |
Name | Describe |
---|---|
bitmap_parse_user | map_parse_user - convert an ASCII hex string in a user buffer into a bitmap*@ubuf: pointer to user buffer containing string.*@ulen: buffer size in bytes. If string is smaller than this* then it must be terminated with a \0. |
bitmap_parse |
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 |