ksz9477_port_acl_free(9)
π ksz9477_port_acl_free(9) β the Kernel API Manual glow-up β¨
okay so bestie, we're in the Kernel API Manual today and this little function is genuinely iconic. it's called ksz9477_port_acl_free and it lives in the kernel docs, so you KNOW it's doing main character work πΈ
β¨ NAME β¨
ksz9477_port_acl_free β frees the ACL resources for a specified port on a ksz device π
like, it's the cleanup era. the goodbye era. the "we're done here, release the memory" era π
π¦ SYNOPSIS π¦
void ksz9477_port_acl_free (struct ksz_device *dev , int port );
yup, that's the whole vibe check β a void return, so it doesn't hand anything back to you, it just does the thing. no notes. periodt β¨
πΈ ARGUMENTS πΈ
devβ theksz_deviceinstance. this is your main character struct, the device we're operating on π«Άportβ the port number to initialize the ACL for. yes, the original docs literally say "initialize" here even though this is the free function β that's what it says, so that's what we're telling you, ngl π
π DESCRIPTION π
so what does it actually do? okay so:
this disables the ACL for the specified port and frees the associated memory π
that's it. that's the whole function. it turns the ACL off for that port and then lets the memory go. lowkey the most satisfying kind of kernel function β the one that cleans up after everybody else π₯
bestie note: this is a cleanup function, so think about it like closing the group chat after the plans are made. no ACL, no memory, no drama π§
π₯ SEE ALSO π₯
okay so if you're gonna read this one you should absolutely go read the whole friend group, they're all in the kernel file ./drivers/net/dsa/microchip/ksz9477_acl.c and honestly? they ate π
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_write_list(9)ksz9477_acl_remove_entries(9)ksz9477_port_acl_init(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)
π one more thing: the file path in the SEE ALSO is./drivers/net/dsa/microchip/ksz9477_acl.cand the directory listed at the bottom is./drivers/net/dsa/microchipβ go browse both, iykyk π
okay bestie that's the whole page and honestly? she's short, she's sweet, she frees memory. we love her. this was ksz9477_port_acl_free(9) from the Kernel API Manual, dated October 2026, brought to you by the fine people at ./drivers/net/dsa/microchip π¦π
β¨ go free some ACLs bestie, mwah π
π¦ 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