ksz9477_acl_write_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_acl_write_list(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, you found ksz9477_acl_write_list in the Kernel API Manual and I'm literally obsessed, because this lil function is the one that actually pushes your whole ACL list out to a port. no cap. let's get into it ✨


🌸 NAME 🌸

ksz9477_acl_write_list β€” write a list of ACL entries to a given port. that's it, that's the gig πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksz9477_acl_write_list (struct ksz_device *dev , int port );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the ksz_device instance. your main character struct fr fr 🫢
  • port β€” the port number on which to write ACL entries. like, which port is getting the makeover πŸ’β€β™€οΈ

✨ DESCRIPTION ✨

so here's the vibe: this function enables ACL functionality on the specified port, writes a list of ACL entries to the port, and then β€” and this is the detail I need you to remember β€” disables ACL functionality if there are no entries. so it's giving "turn the lights on, do the thing, turn the lights back off if nobody showed up." iconic behavior honestly πŸ”₯


πŸ’– RETURN πŸ’–

0 if the operation is successful, or a negative error code if an error occurs. so like, zero means slay, negative means 😭.


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/net/dsa/microchip/ksz9477_acl.c β€” go read it, iykyk πŸ“–

and here's the whole friend group, all of them showing up to the group chat:


heads up bestie: this page comes straight out of ./drivers/net/dsa/microchip, dated October 2026. whenever you're poking at ACLs on a ksz9477, that's the source of truth πŸ’œ

and that's the whole page, periodt. go write some ACL entries, you absolute legend πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from