filter_parse_regex(9)
πΈ filter_parse_regex(9) β Kernel API Manual πΈ
okay so bestie, this is the manual page for filter_parse_regex(9) from the Kernel API Manual, and it's literally about parsing a basic regex. no cap, it's giving kernel internals but make it cute. slay. π
β¨ NAME β¨
filter_parse_regex β parse a basic regex π
β¨ SYNOPSIS β¨
enum regex_type filter_parse_regex (char *buff , int len , char **search
, int *not );
π ARGUMENTS π
buffβ the raw regex πlenβ length of the regexsearchβ will point to the beginning of the string to comparenotβ tell whether the match will have to be inverted
π DESCRIPTION π
Okay so here's the whole vibe: this passes in a buffer containing a regex, and this function will set search to point to the search part of the buffer and return the type of search it is (see enum above). π
Heads up bestie: This does modify buff. Not me being dramatic β the original literally says so. π
Returns enum type. search returns the pointer to use for comparison. not returns 1 if buff started with a '!', 0 otherwise. π
π¦ SEE ALSO π¦
Kernel file ./kernel/trace/trace_events_filter.c β plus struct prog_entry(9), update_preds(9), create_filter(9), and create_system_filter(9) π
mwah π that's the page! source/version: ./kernel/trace β’ dated October 2026 πβ¨
π¦ 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