ksz9477_get_..._block_start(9)
π ksz9477_get_next_block_start β NAME β¨
ok so this is ksz9477_get_next_block_start, and it lives in the Kernel API Manual (yep, the (9) girlies, section 9, we love her). her whole job? identify the starting index of the next ACL block. that's it. that's the vibe. π
πΈ SYNOPSIS πΈ
int ksz9477_get_next_block_start (struct ksz_device *dev , int port ,
int start );
like, three args, one int back. lowkey elegant ngl π¦
β¨ ARGUMENTS β¨
devβ pointer to the device structure. the main character of the whole struct situation πportβ the port number where the ACL entries are being checked. yes, that port. π«Άstartβ the starting index the search kicks off from. where we begin, bestie. β
π« DESCRIPTION π«
okay so picture this: the function goes looking for the next valid ACL block, starting from the provided invalid one β or, if it hits the end of the ACL entries without finding another block, it returns the maximum ACL entries count. that's the whole quest. no cap. π₯
(it's giving "search party but for ACL blocks" and honestly? obsessed. π )
π RETURN π
- the starting index of the next valid ACL block π
KSZ9477_ACL_MAX_ENTRIESif no other valid blocks are found afterstartπ- a negative error code if an error occurs while checking π
π SEE ALSO π
kernel file: ./drivers/net/dsa/microchip/ksz9477_acl.c β go read her, she's iconic π
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_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)
and that's the whole page bestie, ily, go forth and find your next block π
sign-off szn: this one's from ./drivers/net/dsa/microchip, dated October 2026 β and it's literally ksz9477_get_..._block_start(9) all over again π«Άβ¨
π¦ 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