rvu_npc_exa..._table_entry(9)
πΈ rvu_npc_exact_alloc_mem_table_entry(9) πΈ
okay bestie, welcome to the Kernel API Manual β¨ this one lives at the top of the page as rvu_npc_exa..._table_entry(9) (yes the header truncates it, that's just how the man page flexes, the real full name is the one in the NAME section, iykyk) π
β¨ NAME β¨
rvu_npc_exact_alloc_mem_table_entry β find a free entry in the 4 way table. that's it, that's the whole vibe π
π SYNOPSIS π
int rvu_npc_exact_alloc_mem_table_entry (struct rvu *rvu , u8 *way , u32 *index , unsigned int hash );
like, look at her. iconic signature. no cap π«Ά
π ARGUMENTS π
rvuβ resource virtualization unit. the main character struct, literally β¨wayβ indicate way to table. it's a pointer to au8, and it tells you which way you're headed π¦indexβ hash index to 4 way table. au32 *, so she points right at the index π₯hashβ hash value. anunsigned int, the actual hash, periodt π
π§ DESCRIPTION π§
so what does she do? she searches the 4 way table using the hash index. that's the whole job. and she returns 0 on success π
ngl, this is a very "does one thing and does it well" kind of function and honestly? respect π
β RETURN β
0 upon success. that's the whole return story bestie, zero means we slayed π
fr fr, 0 = success here, don't go reading anything else into it π
πΈ SEE ALSO πΈ
the kernel file she lives in:
./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.cπ
and her whole friend group, the extended cinematic universe π«:
rvu_exact_prepare_mdata(9)rvu_exact_calculate_hash(9)rvu_npc_exact_free_id(9)rvu_npc_exact_alloc_id(9)rvu_npc_exact_alloc_cam_table_entry(9)rvu_exact_prepare_table_entry(9)rvu_exact_config_secret_key(9)rvu_exact_config_search_key(9)rvu_exact_config_result_ctrl(9)rvu_exact_config_table_mask(9)rvu_npc_exact_get_max_entries(9)rvu_npc_exact_has_match_table(9)__rvu_npc_exact_find_entry_by_seq_id(9)rvu_npc_exact_add_to_list(9)rvu_npc_exact_mem_table_write(9)rvu_npc_exact_cam_table_write(9)rvu_npc_exact_dealloc_table_entry(9)rvu_npc_exact_alloc_table_entry(9)rvu_npc_exact_save_drop_rule_chan_and_mask(9)rvu_npc_exact_calc_drop_rule_chan_and_mask(9)rvu_npc_exact_drop_rule_to_pcifunc(9)rvu_npc_exact_get_drop_rule_info(9)__rvu_npc_exact_cmd_rules_cnt_update(9)rvu_npc_exact_del_table_entry_by_id(9)rvu_npc_exact_add_table_entry(9)rvu_npc_exact_update_table_entry(9)rvu_npc_exact_promisc_disable(9)rvu_npc_exact_promisc_enable(9)rvu_npc_exact_mac_addr_reset(9)rvu_npc_exact_mac_addr_update(9)rvu_npc_exact_mac_addr_add(9)rvu_npc_exact_mac_addr_del(9)rvu_npc_exact_mac_addr_set(9)rvu_npc_exact_can_disable_feature(9)rvu_npc_exact_disable_feature(9)rvu_npc_exact_reset(9)rvu_npc_exact_init(9)
and that's the whole page bestie π«Ά source path is ./drivers/net/ethernet/marvell... and she's dated October 2026, footer name rvu_npc_exa..._table_entry(9) β truncated again, we love a consistent aesthetic πβ¨ bye bye, go call the function, drink some water π
π¦ 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