match_one(9)
π¦ match_one(9) π¦
okay so bestie, welcome to the Kernel API Manual β this page is all about match_one, and it's literally the moment a string and a pattern find out if they're a match. no cap. π
β¨ NAME β¨
match_one β determines if a string matches a simple pattern. periodt. π
πΈ SYNOPSIS πΈ
int match_one (char *s , const char *p , substring_t args[] );
π ARGUMENTS π
sβ the string youβre examining for the presence of the pattern. πpβ the string that contains the pattern. π§argsβ array ofMAX_OPT_ARGSsubstring_telements. itβs used to return match locations. π
π« DESCRIPTION π«
so it determines if the pattern p is present in string s. thatβs the whole plot. π«Ά
it can only match extremely simple token=arg style patterns β like, do not expect it to do the most. π
if the pattern is found, the location(s) of the arguments will be returned in the args array. iconic behavior, honestly. β¨
π₯ SEE ALSO π₯
kernel file ./lib/parser.c β plus the whole match crew, and yes, weβre listing every single one:
match_token(9)match_number(9)match_u64int(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)
π«Ά okay thatβs the page, bestie β this cutie signs off from source path ./lib, dated October 2026, still serving match_one(9) energy. 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