ksz9477_acl_write_list(9)
π ksz9477_acl_write_list(9) β the Kernel API Manual glow-up π
okay so bestie, you found ksz9477_acl_write_list in the Kernel API Manual and I'm literally obsessed, because this lil function is the one that actually pushes your whole ACL list out to a port. no cap. let's get into it β¨
πΈ NAME πΈ
ksz9477_acl_write_list β write a list of ACL entries to a given port. that's it, that's the gig π
π¦ SYNOPSIS π¦
int ksz9477_acl_write_list (struct ksz_device *dev , int port );
π ARGUMENTS π
devβ theksz_deviceinstance. your main character struct fr fr π«Άportβ the port number on which to write ACL entries. like, which port is getting the makeover πββοΈ
β¨ DESCRIPTION β¨
so here's the vibe: this function enables ACL functionality on the specified port, writes a list of ACL entries to the port, and then β and this is the detail I need you to remember β disables ACL functionality if there are no entries. so it's giving "turn the lights on, do the thing, turn the lights back off if nobody showed up." iconic behavior honestly π₯
π RETURN π
0 if the operation is successful, or a negative error code if an error occurs. so like, zero means slay, negative means π.
π SEE ALSO π
the kernel file lives at ./drivers/net/dsa/microchip/ksz9477_acl.c β go read it, iykyk π
and here's the whole friend group, all of them showing up to the group chat:
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_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_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)
heads up bestie: this page comes straight out of./drivers/net/dsa/microchip, datedOctober 2026. whenever you're poking at ACLs on a ksz9477, that's the source of truth π
and that's the whole page, periodt. go write some ACL entries, you absolute legend ππΈ
π¦ 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