ksz9477_sort_acl_entries(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ ksz9477_sort_acl_entries(9) β€” Kernel API Manual πŸ‘‘

okay bestie, welcome to the Kernel API Manual page for ksz9477_sort_acl_entries(9) β€” yes, that whole manual-name situation is handled right up here so we can get into the good stuff. πŸ’…

🌸 NAME 🌸

ksz9477_sort_acl_entries β€” sort the ACL entries for a given port. Periodt. πŸ’–

✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the KSZ device. It's giving "main character pointer" energy. 🫢
  • port β€” the port number. Slay, specify which port's ACL we're sorting. ⭐

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function sorts the Access Control List (ACL) entries for a specified port. Before the sorting happens, a backup of the original entries is created β€” iconic safety behavior, no cap. 🧚

If the sorting process fails, the function will log error messages displaying both the original and attempted sorted entries, and then restore the original entries from the backup. That's the whole "oops bestie, we're rolling back" moment. 😭

πŸ’– RETURN πŸ’–

0 if the sorting succeeds, otherwise a negative error code. fr fr, check that return value. πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/dsa/microchip/ksz9477_acl.c β€” go read the source, iykyk. πŸ“–


Mwah πŸ’‹ β€” the source path on this one is ./drivers/net/dsa/microchip, and the date stamped on the page is October 2026. Stay sorted, bestie! πŸŽ€βœ¨

πŸ“¦ where this page comes from