ksz9477_acl_get_init_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_acl_get_init_entry β€” Kernel API Manual (section 9, bestie)

okay so this is ksz9477_acl_get_init_entry(9), straight out of the Kernel API Manual, and honestly? it's giving "little helper function that carries the whole ACL squad on its back." let's get into it 🫢


✨ NAME ✨

ksz9477_acl_get_init_entry β€” grab a brand-new uninitialized entry for a specific port on a ksz_device. that's the whole vibe. no cap. πŸŽ€


🌸 SYNOPSIS 🌸

struct ksz9477_acl_entry * ksz9477_acl_get_init_entry (struct ksz_device
*dev , int port , unsigned long cookie , u32 prio );

like, that's the signature, copy it exactly please, it's not a vibe-based thing 😭


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the ksz_device instance. your main character device, the one everything happens on πŸ’–
  • port β€” the port number you want the uninitialized entry for. be specific, bestie, ports matter πŸ”₯
  • cookie β€” the cookie to associate with the entry. yes, a cookie, it's real, it goes in there πŸ“
  • prio β€” the priority to associate with the entry, as a u32. priorities are iconic, don't skip them πŸ‘‘

🌈 DESCRIPTION 🌈

so what it does is: this function retrieves the next available ACL entry for the specified port, clears all the access flags on it (all of them, every last one, bye πŸ‘‹), and then associates it with the current cookie. that's it, that's the function, lowkey elegant πŸ’…

no guessing, no extra lore β€” that's literally what the manual says and we're not adding to it 🧚


⭐ RETURN ⭐

a pointer to the new uninitialized ACL entry. struct ksz9477_acl_entry *. slay ✨


πŸŽ€ SEE ALSO πŸŽ€

the kernel file lives right here: ./drivers/net/dsa/microchip/ksz9477_acl.c β€” and here's the whole friend group, no one gets left out:


pro tip from your girl: this one hands you an uninitialized entry β€” the flags are cleared and the cookie's attached, but don't go assuming it's ready to fly, okay? read the docs, stay safe πŸ’€

and that's the page!! 🫢 source path is ./drivers/net/dsa/microchip, dated October 2026, still filed under ksz9477_acl_get_init_entry(9) β€” periodt, go touch some registers bestie πŸ’œπŸŒΈ

πŸ“¦ where this page comes from