strfilter__new(9)
π strfilter__new(9) β kernel API manual, but make it cute
okay bestie, so this one's from the Kernel API Manual and it's genuinely such a little icon. it makes string filters. that's it. that's the vibe. β¨
π NAME π
strfilter__new β literally creates a brand new string filter for you π«Ά
β¨ SYNOPSIS β¨
struct strfilter * strfilter__new (const char *rules , const char **err
);
πΈ ARGUMENTS πΈ
rulesβ the filter rule itself, and no cap it's a combination of glob expressions, like it's not just one lil glob, it's the whole squad π¦errβ a pointer that points at an error detected onrules. yes it's a pointer to a pointer, she's fancy like that π
π DESCRIPTION π
so the way that this works is: it parses rules and returns a shiny new strfilter. main character energy fr fr π
but listen π β it returns NULL if an error is detected. and in that case, *err will indicate where it is detected. so *err is your lil receipts of where things went off π
one more thing bestie, and this is the important caveat: *err is NULL if a memory allocation is failed. like, that's a different failure mode entirely, so don't @ me if you assumed it was a rule problem π
π₯ SEE ALSO π₯
- Kernel file
./tools/perf/util/strfilter.h strfilter__or(9)strfilter__compare(9)strfilter__delete(9)strfilter__string(9)
go read those next, iykyk π
ngl this whole thing lives at./tools/perf/utilβ that's the source/version home, and the date on the cover is October 2026. it's givingstrfilter__new(9)era and we're obsessed. periodt. ππ§β
π¦ 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