match_u64int(9)
okay so bestie, welcome to match_u64int(9) from the Kernel API Manual β this one is literally all about scanning a number in the given base from a substring_t, and it's giving βtiny parser helperβ energy. π
β¨ NAME β¨
match_u64int β scans a number in the given base from a substring_t. no cap, that's the whole assignment. π
π οΈ SYNOPSIS π οΈ
int match_u64int (substring_t *s , u64 *result , int base );
π ARGUMENTS π
sβ thesubstring_tthat's gonna get scanned, bestie. πresultβ where the resultingu64lands on success. π«Άbaseβ the base to use when converting the string. iconic little number-base moment. π₯
πΈ DESCRIPTION πΈ
Give it a substring_t and a base, and it attempts to parse that substring as a number in that base. that's it, that's the vibe. β¨
β RETURN β
On success, it sets result to the integer represented by the string and returns 0. if things go sideways, it returns -EINVAL or -ERANGE. periodt. π
π SEE ALSO π
Kernel file ./lib/parser.c, plus these iconic friends in the match_* friend group:
match_one(9)match_token(9)match_number(9)match_int(9)match_uint(9)match_u64(9)match_octal(9)match_hex(9)match_wildcard(9)match_strlcpy(9)match_strdup(9)
that's the whole page, bestie! source/version: ./lib, date: October 2026 π«Άβ¨ mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms