textsearch_find_continuous(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ textsearch_find_continuous ✨

Okay bestie, welcome to the textsearch_find_continuous(9) page from the Kernel API Manual πŸ’… this one's a little cutie, ngl β€” it's the simpler, chiller sibling of textsearch_find, made specifically for continuous/linear data πŸ¦‹


🌸 SYNOPSIS 🌸

unsigned int textsearch_find_continuous (struct ts_config *conf , struct
ts_state *state , const void *data , unsigned int len );

Like, that's the whole signature πŸŽ€ she takes four things and gives you back an unsigned int, periodt.


πŸ’– ARGUMENTS πŸ’–

  • conf β€” the search configuration, i.e. how you've set this whole search situation up πŸ’…
  • state β€” the search state, she's holding the vibes between calls 🫢
  • data β€” the data you're actually searching in, the main character of this operation πŸ‘‘
  • len β€” the length of data, because we gotta know where it ends, fr fr

πŸ”₯ DESCRIPTION πŸ”₯

So like β€” this is a simplified version of textsearch_find, but specifically for continuous/linear data ✨ no cap. Once you've found your first match, you call textsearch_next to go get the subsequent matches, one after another, and she just keeps feeding you results πŸ“

It returns the position of the first occurrence of the pattern πŸ’– and if there's literally no occurrence found? It returns UINT_MAX πŸ’€ that's the "nope, nothing here bestie" answer.

Heads up: the return is either a real position or UINT_MAX β€” so don't go treating UINT_MAX like a normal index, okay? πŸ™ˆ

🌈 SEE ALSO 🌈

Kernel file ./lib/textsearch.c, plus these iconic siblings:


That's the whole page, bestie β€” you ate that πŸ’…βœ¨

Sign-off cuteness: this one lives in ./lib, dated October 2026, and it's from the Kernel API Manual πŸŽ€πŸ¦‹ go forth and search continuously, ily πŸ’œ

πŸ“¦ where this page comes from