textsearch_next(9)
Hey bestie π welcome to textsearch_next(9), straight outta the Kernel API Manual. This oneβs the βkeep lookingβ girlie for pattern searches, and sheβs lowkey essential. Letβs get into it π
β¨ NAME β¨
textsearch_next β continue searching for a pattern π
π¦ SYNOPSIS π¦
unsigned int textsearch_next (struct ts_config *conf , struct ts_state *state );
πΈ ARGUMENTS πΈ
confβ search configurationstateβ search state
π DESCRIPTION π
Okay so textsearch_next continues a search looking for more occurrences of the pattern. Bestie, important: textsearch_find must be called to find the first occurrence in order to reset the state. No skipping that step, fr fr.
It returns the position of the next occurrence of the pattern, or UINT_MAX if not match was found. Yep β if you get UINT_MAX, the search said βno more match foundβ π.
π SEE ALSO π
- Kernel file
./include/linux/textsearch.h struct ts_state(9)struct ts_ops(9)struct ts_config(9)textsearch_find(9)textsearch_get_pattern(9)textsearch_get_pattern_len(9)
And thatβs the whole vibe π«Ά This page came from source path ./include/linux and is dated October 2026, with the manual title textsearch_next(9) β 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