rvu_npc_exa..._table_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rvu_npc_exact_alloc_table_entry ✨

okay bestie, welcome to the Kernel API Manual πŸŽ€ β€” this is a kernel function page, and yes it's about grabbing a table entry. buckle up, it's shorter than it looks but the SEE ALSO list is huge πŸ’€


🌸 NAME 🌸

rvu_npc_exact_alloc_table_entry β€” Allociate an entry (not me spelling it like that, that's literally what the page says 😭)


⭐ SYNOPSIS ⭐

int rvu_npc_exact_alloc_table_entry (struct rvu *rvu , char *mac , u16
chan , u8 ctype , u32 *index , u8 *ways , enum npc_exact_opc_type
*opc_type );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rvu β€” resource virtualization unit. the whole vibe source, iykyk πŸ’œ
  • mac β€” MAC address.
  • chan β€” Channel number.
  • ctype β€” Channel Type.
  • index β€” Index of MEM table or CAM table. πŸ‘‘
  • ways β€” Ways. Only valid for MEM table. (MEM-table-only bestie, don't try it elsewhere πŸ™ˆ)
  • opc_type β€” OPCODE to select table (MEM or CAM) πŸ”₯

πŸ’– DESCRIPTION πŸ’–

so here's the tea πŸ“: it tries allocating a slot from the MEM table. if all 4 ways slot are full for a hash index, it checks availability in the 32-entry CAM table for allocation. that's it, that's the whole personality ✨


🌈 RETURN 🌈

0 upon success. slay. πŸ‘‘


🧚 SEE ALSO 🧚

the kernel file lives at ./drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c β€” and here's the entire friend group 🫢:


ngl this page is giving "one function, thirty-seven friends" energy πŸ’€ but every single one of them is linked above, no cap.

okay that's the whole page bestie 🫢 mwah πŸ’‹ β€” it ships from ./drivers/net/ethernet/marvell... and the version stamp says October 2026, so like, future-era kernel lore ⭐ see you in the next manpage ✨

πŸ“¦ where this page comes from