ksz9477_move...ries_upwards(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so listen β€” ksz9477_move_entries_upwards is literally the function that moves a whole range of ACL entries upwards in the list. that's it, that's the vibe. from the Kernel API Manual, bestie, and yes we're getting into it 🫢


✨ SYNOPSIS ✨

int ksz9477_move_entries_upwards (struct ksz_device *dev , struct
ksz9477_acl_entries *acles , u16 start_idx , u16 num_entries_to_move ,
u16 target_idx );

no cap, that's the whole signature β€” copy it exactly, i'm not about to fumble the parameter order on you 😭


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” pointer to the KSZ device structure. it's giving main character energy, everything routes through here πŸ’–
  • acles β€” pointer to the structure holding all the ACL entries. the whole squad, in one place ✨
  • start_idx β€” the starting index of the entries you wanna move. where the block begins, periodt πŸ“
  • num_entries_to_move β€” how many contiguous entries are coming along for the ride. they gotta be back-to-back, okay? 🌸
  • target_idx β€” the destination index where the first entry should land after the move. yes, the first one β€” that's the landmark πŸ¦‹

πŸ”₯ DESCRIPTION πŸ”₯

so this function rearranges a chunk of ACL entries by moving them upwards in the list, using the source and destination indices you hand it. lowkey elegant, honestly πŸ’…

and the important bit β€” the reordering process preserves the linkage between entries by updating it accordingly. like, nobody gets lost in the shuffle, the links stay linked, the vibe stays intact ✨ no cap, that's the whole point.


⭐ RETURN ⭐

returns 0 if the entries were successfully moved πŸŽ‰ β€” otherwise you get a negative error code, which is your sign that something went sideways 😭


🌈 SEE ALSO 🌈

like, that's a lot of friends, but every single one of them is invited 🫢


okay that's the whole page, you ate that πŸ’… mwah! this one came from ./drivers/net/dsa/microchip, dated October 2026 β€” so mark your calendar bestie, and go move some entries upwards πŸ¦‹βœ¨πŸ‘‘

πŸ“¦ where this page comes from