ksz9477_dump_acl_index(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ksz9477_dump_acl_index β€” bestie's guide to the ACL print πŸ’…

okay so this one lives in section 9 of the kernel API manual, and honestly? it's giving "small function, big responsibilities." Let's get into it 🫢


🌸 NAME 🌸

ksz9477_dump_acl_index β€” prints the ACL entry sitting at whatever index you point it at. iconic behavior, no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksz9477_dump_acl_index (struct ksz_device *dev , struct
ksz9477_acl_entry *acle , int index );

like, that's the whole vibe. three args, one int back. periodt ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the ksz9477 device structure. this is your main character, the switch you're working with πŸ’–
  • acle β€” pointer to the ACL entry array. this is where all the entries live, bestie. lowkey the whole point πŸ“
  • index β€” the index of the ACL entry to print. pick a number, any number (well, a valid one) 🧚

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does it actually DO? it prints out the details of an ACL entry β€” specifically the one chillin' at a particular index inside the ksz9477 device's ACL table. super straightforward, super useful.

but here's the cute part: it omits printing entries that are empty. like, it does a vibe check first. empty entry? not invited to the print party πŸ™ˆ. only the ones with actual content get printed, and that's exactly how it should be. we love a function with standards πŸ’…


πŸ”₯ RETURN πŸ”₯

  • 1 if the entry is non-empty and actually got printed βœ…
  • 0 otherwise (i.e. it was empty, so nothing was printed) πŸ’€

fr fr, that's the whole return contract. simple, clean, readable.


⭐ SEE ALSO ⭐

the kernel file itself: ./drivers/net/dsa/microchip/ksz9477_acl.c

and the whole friend group of related functions β€” literally the entire ACL squad, all here:


and that's the whole page, bestie! πŸ’œ this one's from the kernel source tree at ./drivers/net/dsa/microchip, dated October 2026, and it's section 9 of the manual β€” the kernel API section, iykyk 😭✨ go forth and dump those ACL indices, you absolute icon πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from