ksz9477_sor...entr_no_back(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the ksz9477_sor...entr_no_back(9) page from the Kernel API Manual β€” and yes, the full function name is the icon herself: ksz9477_sort_acl_entr_no_back.

She sorts ACL entries for a given port based on priority without backing up entries. periodt.


🌸 SYNOPSIS 🌸

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

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the device structure. the whole device vibe check lives here.
  • port β€” the port number whose ACL entries need to be sorted. yes, that port. specifically that one. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function sorts the ACL entries of the specified port using a variant of the bubble sort algorithm. not individual entries though β€” she operates on blocks of ACL entries, okay? very block-coded of her.

each block's starting point is identified, and then it gets compared with subsequent blocks based on their priority. if the current block has a lower priority than the subsequent block, the two blocks are swapped. simple as that, no cap.

this is done in order to maintain an organized order of ACL entries based on priority, ensuring efficient and predictable ACL rule application. like, she's keeping the queue cute and functional. πŸ’–


πŸ’€ RETURN πŸ’€

  • 0 on successful sorting of entries. slay.
  • A negative error code if any issue arises during sorting, e.g., if the function is unable to get the next block start. not the vibe, but it's documented. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file: ./drivers/net/dsa/microchip/ksz9477_acl.c

and the whole friend group, fr fr:


mwah πŸ’‹ cute lil sign-off: this page came from ./drivers/net/dsa/microchip, dated October 2026, and it's the ksz9477_sor...entr_no_back(9) page. catch u later, bestie. 🫢✨

πŸ“¦ where this page comes from