ksz9477_sor...entr_no_back(9)
β¨ 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 π
0on 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:
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)ksz9477_move_entries_upwards(9)ksz9477_acl_move_entries(9)ksz9477_get_next_block_start(9)ksz9477_swap_acl_blocks(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)
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
- 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