ksz9477_move...ries_upwards(9)
π 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 theKSZdevice 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 π
- Kernel file
./drivers/net/dsa/microchip/ksz9477_acl.cβ the mothership π§ ksz9477_dump_acl_index(9)ksz9477_dump_acl(9)ksz9477_acl_is_valid_matching_rule(9)ksz9477_acl_get_cont_entr(9)ksz9477_acl_update_linkage(9)ksz9477_validate_and_get_src_count(9)ksz9477_move_entries_downwards(9)β yeah, the other direction bestie πksz9477_acl_move_entries(9)ksz9477_get_next_block_start(9)ksz9477_swap_acl_blocks(9)ksz9477_sort_acl_entr_no_back(9)ksz9477_sort_acl_entries(9)ksz9477_acl_wait_ready(9)ksz9477_acl_entry_write(9)ksz9477_acl_port_enable(9)ksz9477_acl_port_disable(9)ksz9477_acl_write_list(9)ksz9477_acl_remove_entries(9)ksz9477_port_acl_init(9)ksz9477_port_acl_free(9)ksz9477_acl_set_reg(9)ksz9477_acl_matching_rule_cfg_l2(9)ksz9477_acl_action_rule_cfg(9)ksz9477_acl_processing_rule_set_action(9)ksz9477_acl_processing_rule_add_match(9)ksz9477_acl_get_init_entry(9)ksz9477_acl_match_process_l2(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms