ksz9477_acl_entry_write(9)
π ksz9477_acl_entry_write(9) β a Kernel API Manual moment
okay bestie, welcome to the Kernel API Manual page for ksz9477_acl_entry_write, and honestly? she's a little icon. one job, does it well, no drama. let's get into it π
πΈ NAME πΈ
ksz9477_acl_entry_write β writes an ACL entry to a given port at the specified index. that's it, that's the whole vibe. β¨
π¦ SYNOPSIS π¦
int ksz9477_acl_entry_write (struct ksz_device *dev , int port , u8 *entry , int idx );
she takes four things and gives you back an int. lowkey elegant. π«Ά
π ARGUMENTS π
devβ theksz_deviceinstance. your main character struct, fr.portβ the port number you're writing the ACL entry to. pick your fave.entryβ a pointer to the ACL entry data. yes it's au8 *, no we're not questioning it.idxβ the index at which to write the ACL entry. location, location, location π
β¨ DESCRIPTION β¨
so like, what does she do? she writes the provided ACL entry to the specified port at the given index. that's the whole plot. no cap, no hidden twist, just a clean little write operation doing exactly what the name says π₯
β RETURN β
0 if the operation is successful π β or a negative error code if an error occurs π (iykyk, always check your returns besties).
π SEE ALSO π
the whole friend group, and honestly they're all iconic π:
- kernel file
./drivers/net/dsa/microchip/ksz9477_acl.c 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_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)
reminder bestie: this page lives in the kernel source tree at ./drivers/net/dsa/microchip π
and that's the page!! stay hydrated, check your error codes, and remember β negative return values are NOT a personality trait π
with love, from the Kernel API Manual, dated October 2026 π§ββοΈ
π¦ 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