rvu_npc_exa..._table_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 a u8, and it tells you which way you're headed πŸ¦‹
  • index β€” hash index to 4 way table. a u32 *, so she points right at the index πŸ”₯
  • hash β€” hash value. an unsigned 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 πŸ’«:


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