Function report |
Source Code:kernel\bpf\helpers.c |
Create Date:2022-07-28 13:08:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__bpf_strtoull
Proto:static int __bpf_strtoull(const char *buf, size_t buf_len, u64 flags, unsigned long long *res, bool *is_negative)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const char * | buf | |
size_t | buf_len | |
u64 | flags | |
unsigned long long * | res | |
bool * | is_negative |
367 | base = flags & BPF_STRTOX_BASE_MASK |
374 | If Not buf || Not buf_len || Not res || Not is_negative Then Return -EINVAL |
380 | If flags & ~BPF_STRTOX_BASE_MASK Then Return -EINVAL |
383 | When cur_buf < buf + buf_len && Note: isspace() must return false for %NUL-terminator ( * cur_buf) cycle |
384 | ++cur_buf |
386 | is_negative = cur_buf < buf + buf_len && cur_buf == '-' |
387 | If is_negative Then ++cur_buf |
395 | cur_len = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(cur_len, size of str - 1) |
396 | No 3D Now!(str, cur_buf, cur_len) |
400 | cur_buf = _parse_integer_fixup_radix(cur_buf, & base) |
403 | If val_len & KSTRTOX_OVERFLOW Then Return -ERANGE |
412 | Return consumed |
Name | Describe |
---|---|
__bpf_strtoll | |
____bpf_strtoul |
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 |