filter_parse_regex(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 regex
  • search β€” will point to the beginning of the string to compare
  • not β€” 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