textsearch_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, this is textsearch_register from the Kernel API Manual β€” and it does exactly what it says on the tin: register a textsearch module. literally the glow-up announcement for your module. πŸ’…


✨ SYNOPSIS ✨

int textsearch_register (struct ts_ops *ops );

πŸŽ€ ARGUMENTS πŸŽ€

  • ops β€” the operations lookup table. yes bestie, this is the lookup table of operations. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This function must be called by textsearch modules to announce their presence. like, it's the β€œhey bestie i'm here” moment for your module, and the kernel is listening. πŸ‘‘

The specified &ops must have name set to a unique identifier, and the callbacks find, init, get_pattern, and get_pattern_len must be implemented. no cap, all four of those callbacks need to be there β€” this is not a vibe-check situation where you can skip one. 😭

Returns 0 or -EEXISTS if another module has already registered with same name. so yeah, if the name is already taken, that's an -EEXISTS moment. πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./lib/textsearch.c


mwah πŸ’‹ this page is sourced from ./lib, dated October 2026 β€” iconic, fr fr πŸŽ€βœ¨

πŸ“¦ where this page comes from