match_u64(9)
π NAME π
okay bestie, this page is match_u64(9) from the Kernel API Manual β yes, the manual name is folded right in, we're doing that. the name line is literally:
match_u64 - scan a decimal representation of a u64 from a substring_t
so the whole job is scanning a decimal representation of a u64 out of a substring_t. iconic.
β¨ SYNOPSIS β¨
int match_u64 (substring_t *s , u64 *result );
π«Ά ARGUMENTS π«Ά
sβ thesubstring_tto be scanned. that's the substring bestie in question.resultβ the resultingunsigned long longon success. this is where the parsed number lands when it slays.
π DESCRIPTION π
okay so the plot of this function: it attempts to parse the substring_t s as a long decimal integer. decimal representation of a u64, pulled out of a substring β that's the whole vibe. no extra plot twists.
π RETURN π
on success, it sets result to the integer represented by the string and returns 0. clean.
on failure, it returns -EINVAL or -ERANGE. those are the failure codes, periodt. don't ignore them.
π¦ SEE ALSO π¦
kernel file ./lib/parser.c is the home base, and these linked besties are:
match_one(9)match_token(9)match_number(9)match_u64int(9)match_int(9)match_uint(9)match_octal(9)match_hex(9)match_wildcard(9)match_strlcpy(9)match_strdup(9)
mwah π source/version: ./lib; date: October 2026. that's the footer energy, bestie β go scan that decimal and slay. π
β¨
π¦ 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