ksz9477_acl_port_disable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_acl_port_disable(9) β€” from the Kernel API Manual, bestie ✨

okay so picture this: it's a (9) kernel API page, the manual is literally called Kernel API Manual, and the whole celeb of the hour is ksz9477_acl_port_disable. she's a function. she turns ACL stuff off on a port. she's lowkey iconic. let's get into it πŸŽ€


✨ NAME ✨

ksz9477_acl_port_disable β€” bestie, she literally disables ACL functionality on a given port. that's the whole gig. no cap. πŸ¦‹


✨ SYNOPSIS ✨

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

like… two args, one int coming back at you. she's simple, she's clean, she slays πŸ’…


✨ ARGUMENTS ✨

  • dev β€” the ksz_device instance, aka the whole device vibe. she needs to know which device she's working with, obviously πŸ’–
  • port β€” the port number where you want ACL functionality to be turned off. like, this port specifically. not the other ones. boundaries. 🌸

✨ DESCRIPTION ✨

so here's the tea β˜• β€” this function disables ACL functionality on the specified port. how? by writing a value of 0 to the REG_PORT_MRI_AUTHEN_CTRL control register, and removing the PORT_ACL_PRIO_ENABLE bit from the P_PRIO_CTRL register. two little register moves and the ACL is gone. she ate and left no crumbs πŸ”₯


✨ RETURN ✨

  • 0 if the operation is successful β€” slay, it worked πŸ’–
  • a negative error code if an error occurs β€” 😭 not the negative error code

✨ SEE ALSO ✨

the kernel file, obviously: ./drivers/net/dsa/microchip/ksz9477_acl.c 🧚

and the whole friend group, fr fr:

like, the entire roster. iykyk πŸ‘‘


ngl bestie, if you're calling ksz9477_acl_port_disable you probably also know half this list by heart, and honestly? main character energy 🌈

and that's the page!! 🫢 brought to you by ./drivers/net/dsa/microchip (the source/version, living her best life), dated October 2026, all wrapped up as ksz9477_acl_port_disable(9) β€” periodt πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from