textsearch_find_continuous(9)
β¨ 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 ofdata, 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 orUINT_MAXβ so don't go treatingUINT_MAXlike a normal index, okay? π
π SEE ALSO π
Kernel file ./lib/textsearch.c, plus these iconic siblings:
ts_intro(9)textsearch_register(9)textsearch_unregister(9)textsearch_prepare(9)textsearch_destroy(9)
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
- 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