ksz9477_swap_acl_blocks(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, this is ksz9477_swap_acl_blocks from the Kernel API Manual, and its whole thing is literally swapping two ACL blocks. That’s it, that’s the vibe. πŸ’–

✨ SYNOPSIS ✨

int ksz9477_swap_acl_blocks (struct ksz_device *dev , int port , int i ,
       int j );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” Pointer to the device structure. yes bestie, the device struct, iconic.
  • port β€” The port number on which the ACL blocks are to be swapped.
  • i β€” The starting index of the first ACL block.
  • j β€” The starting index of the second ACL block.

πŸ¦‹ DESCRIPTION πŸ¦‹

So this function swaps two ACL blocks that are sitting at the given indices. The main purpose? It’s here to help with sorting and reordering ACL blocks based on certain criteria β€” priority being the example, okay? It checks the validity of the block at index i, making sure it’s not an empty block, and then it proceeds to swap it with the block at index j. Clean, simple, no cap. ✨

🌸 RETURN 🌸

  • 0 β€” on successful swapping of blocks. slay.
  • -EINVAL β€” if the block at index i is empty. rude but valid.
  • A negative error code β€” if any other error occurs during the swap.

🌈 SEE ALSO 🌈

Kernel file ./drivers/net/dsa/microchip/ksz9477_acl.c is where this lives, bestie. Also go peek at these:


xoxo, this page’s source/version is ./drivers/net/dsa/microchip, and it’s dated October 2026 β€” Kernel API Manual energy only. πŸ’œπŸ«Ά

πŸ“¦ where this page comes from