match_u64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” the substring_t to be scanned. that's the substring bestie in question.
  • result β€” the resulting unsigned long long on 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:


mwah πŸ’‹ source/version: ./lib; date: October 2026. that's the footer energy, bestie β€” go scan that decimal and slay. πŸ’…βœ¨

πŸ“¦ where this page comes from