ksz9477_swap_acl_blocks(9)
π 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 indexiis 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:
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_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)
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
- 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