ksz9477_acl_remove_entries(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ksz9477_acl_remove_entries(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to the Kernel API Manual entry for ksz9477_acl_remove_entries. yes it's a mouthful, no you don't have to say it out loud at parties. it's a kernel function, it's giving "quietly doing important work in the DSA layer," and we're gonna get into it πŸŽ€


✨ NAME ✨

ksz9477_acl_remove_entries β€” removes ACL entries that have a given cookie from a specified ksz9477_acl_entries structure. like, it finds the entries matching your cookie and yeets them. cookie-based deletion, we love a lookup key πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void ksz9477_acl_remove_entries (struct ksz_device *dev , int port ,
       struct ksz9477_acl_entries *acles , unsigned long cookie );

notice the void return β€” this one doesn't come back with receipts, it just does the thing 🌸


🌈 ARGUMENTS 🌈

  • dev β€” the ksz_device instance. your main character device struct 🫢
  • port β€” the port number on which the ACL entries get removed. yes, port-specific, no cap.
  • acles β€” the ksz9477_acl_entries instance. the actual list we're editing, icon behavior.
  • cookie β€” the cookie value to match for entry removal. this is the ✨vibe check✨ β€” match it and you're out.

πŸ’œ DESCRIPTION πŸ’œ

k so here's the whole plot: this function iterates through the entries array and removes any entries with a matching cookie value. that's the matchup, that's the criteria, no notes.

and then β€” because leaving a gap in an array is so not slay β€” the remaining entries get shifted down to fill the gap. tidy. clean. the array stays compact. it's giving "we don't do holes here" πŸ’€βœ¨

ngl the whole thing is basically: scan β†’ match on cookie β†’ remove β†’ shift the leftovers down. two steps, zero drama πŸ™ˆ

🧚 SEE ALSO 🧚

the whole friend group is here, fr fr:

like yes that's a lot of ACL functions, they're all besties, iykyk πŸ’–


and that's the page!! πŸŽ€ this iconic little manual lives in ./drivers/net/dsa/microchip, dated October 2026, and it's filed under ksz9477_acl_remove_entries(9) forever and ever. mwah πŸ’‹ periodt

πŸ“¦ where this page comes from