ksz9477_dump_acl_index(9)
β¨ ksz9477_dump_acl_index β bestie's guide to the ACL print π
okay so this one lives in section 9 of the kernel API manual, and honestly? it's giving "small function, big responsibilities." Let's get into it π«Ά
πΈ NAME πΈ
ksz9477_dump_acl_index β prints the ACL entry sitting at whatever index you point it at. iconic behavior, no cap.
π¦ SYNOPSIS π¦
int ksz9477_dump_acl_index (struct ksz_device *dev , struct
ksz9477_acl_entry *acle , int index );
like, that's the whole vibe. three args, one int back. periodt β¨
π ARGUMENTS π
devβ pointer to theksz9477device structure. this is your main character, the switch you're working with πacleβ pointer to the ACL entry array. this is where all the entries live, bestie. lowkey the whole point πindexβ the index of the ACL entry to print. pick a number, any number (well, a valid one) π§
π DESCRIPTION π
so what does it actually DO? it prints out the details of an ACL entry β specifically the one chillin' at a particular index inside the ksz9477 device's ACL table. super straightforward, super useful.
but here's the cute part: it omits printing entries that are empty. like, it does a vibe check first. empty entry? not invited to the print party π. only the ones with actual content get printed, and that's exactly how it should be. we love a function with standards π
π₯ RETURN π₯
1if the entry is non-empty and actually got printed β0otherwise (i.e. it was empty, so nothing was printed) π
fr fr, that's the whole return contract. simple, clean, readable.
β SEE ALSO β
the kernel file itself: ./drivers/net/dsa/microchip/ksz9477_acl.c
and the whole friend group of related functions β literally the entire ACL squad, all here:
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_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! π this one's from the kernel source tree at ./drivers/net/dsa/microchip, dated October 2026, and it's section 9 of the manual β the kernel API section, iykyk πβ¨ go forth and dump those ACL indices, you absolute icon ππ
π¦ 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