free_rule(9)
β¨ free_rule(9) β¨
okay so this is a page from the Kernel API Manual and honestly? it's a little baby page but it's an important one, so let's get into it π
πΈ NAME πΈ
free_rule β frees the ipe_rule struct you hand it. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
void free_rule (struct ipe_rule *r );
π¦ ARGUMENTS π¦
rβ theipe_rulestruct you want freed. hand it over bestie, it's done for π
π DESCRIPTION π
so you've got an ipe_rule struct named r and you want it gone β this function is literally the one that frees it. slay. π₯
β οΈ but here's the part you CANNOT skip: r has to be removed from any lists before you call this function. no cap. if it's still chained up in a list somewhere, that's on you, and it's giving undefined behaviour energy π so unlink it first, then free it. periodt.
π SEE ALSO π
- Kernel file
./security/ipe/policy_parser.c new_parsed_policy(9)remove_comment(9)remove_trailing_spaces(9)parse_version(9)parse_header(9)token_default(9)parse_operation(9)parse_action(9)parse_property(9)parse_rule(9)ipe_free_parsed_policy(9)validate_policy(9)ipe_parse_policy(9)
and that's the whole page bestie!! π«Ά this lil icon comes from ./security/ipe, dated October 2026, and it goes by free_rule(9) β go free those rules responsibly, 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