ef4_filter_remove_id_safe(9)
π ef4_filter_remove_id_safe β kernel API manual, section 9 π
okay so bestie, welcome to the ef4_filter_remove_id_safe(9) page β yes it's a section 9 kernel API manual, yes it's a whole vibe, and yes I'm gonna walk you through it like we're texting at 2am π
β¨ NAME β¨
ef4_filter_remove_id_safe β remove a filter by ID, carefully π«Ά
like, carefully. the careful is the whole point. the careful is the main character.
π¦ SYNOPSIS π¦
int ef4_filter_remove_id_safe (struct ef4_nic *efx , enum
ef4_filter_priority priority , u32 filter_id );
return type is int, she gives you an answer, she's communicative, we love that for her π
πΈ ARGUMENTS πΈ
efxβ the NIC you're removing the filter from. it's astruct ef4_nic *. this is your girl. this is who you're operating on πpriorityβ the priority of the filter, anenum ef4_filter_priority, and it's literally the same one you passed toef4_filter_insert_filter. match it up, don't be out here guessing β¨filter_idβ the ID of the filter, au32, exactly as it was returned byef4_filter_insert_filter. you gotta get her back from the insert, that's the whole system π§
π₯ DESCRIPTION π₯
so what does she actually do? she range-checks filter_id π΅οΈββοΈ like, she verifies it's in bounds before touching anything.
and that is why it is safe to call this function with a value passed from userland. userland! the wild west! the chaotic group chat! but she range-checks, so it's fine, no cap π
fr fr the "safe" in the name is not marketing, bestie β the range-check on filter_id is the actual safety mechanism, and that's what makes userland-passed values okay here π
π SEE ALSO π
- the kernel file
./drivers/net/ethernet/sfc/falcon/efx.hβ go read it, she's right there π ef4_filter_insert_filter(9)β where the IDs come from in the first placeef4_filter_get_filter_safe(9)β her sibling, also safe, also iconic π
and that's the page!! mwah π this lil manual lives in ./drivers/net/ethernet/sfc/falcon and it's dated October 2026 β so go forth, range-check, and slay, 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