textsearch_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 configuration
  • state β€” 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 πŸ‘‘


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