strfilter__or(9)
π strfilter__or β the kernel API manual, bestie edition π
okay so picture this: it's a strfilter__or(9) situation, straight out of the Kernel API Manual, and ngl it's a tiny little function that does one very specific iconic thing. let's get into it β¨
πΈ NAME πΈ
strfilter__or β appends one more rule to your filter, and it does it with a logical-or. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int strfilter__or (struct strfilter *filter , const char *rules , const
char **err );
look at her. three args, returns an int, no drama. slay π₯
π ARGUMENTS π
filterβ the original string filter. this is your main character, the thing everything gets attached to πrulesβ the filter rule that's gonna get appended at the left of the root offilter, by using logical-or. yes, left, at the root β that's exactly what the man page says and i'm not about to paraphrase the address, periodt πerrβ a pointer which points at an error detected onrules. so if the rules are giving problems, this is where you find out π
π DESCRIPTION π
so what actually happens? strfilter__or parses rules and joins it to the filter by using logical-or. that's the whole job, and she does it well π«Ά
returns 0 if success β happy ending, we love to see it π β or returns the error code if it's not. so like, check your return value, bestie, no cap π
β SEE ALSO β
the kernel file ./tools/perf/util/strfilter.h, plus the whole friend group:
iykyk π¦
lowkey unrelated but: this page comes from./tools/perf/utiland it's dated October 2026, and the page itself isstrfilter__or(9)β so yeah, that's the whole source/version/date situation, noted and respectfully acknowledged π§π
k bye, go read strfilter__compare(9) next, mwah πβ¨
π¦ 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