STRUCT NFP_RESOURCE_ENTRY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, we're in the Kernel API Manual and this page is literally struct nfp_resource_entry - Resource table entry. that's the whole name, no cap periodt πŸ’…. we're gonna go through every single field together, and yes, every field is getting its moment.

🌸 SYNOPSIS 🌸

here's the struct, bestie β€” copied exactly so there's no mystery:

       struct nfp_resource_entry {
           struct nfp_resource_entry_mutex {
             u32 owner;
             u32 key;
           } mutex;
           struct nfp_resource_entry_region {
             u8 name[NFP_RESOURCE_ENTRY_NAME_SZ];
             u8 reserved[5];
             u8 cpp_action;
             u8 cpp_token;
             u8 cpp_target;
             u32 page_offset;
             u32 page_size;
           } region;
        };

🧚 Members 🧚

okay so the struct is giving two main pieces: mutex and region. let's unpack them like a group chat πŸ’–

  • mutex β€” NFP CPP Lock. that's the lock, bestie.
    • mutex.owner β€” NFP CPP Lock, interface owner. literally the interface owner.
    • mutex.key β€” NFP CPP Lock, posix_crc32(name, 8). the key is posix_crc32(name, 8), iykyk.
  • region β€” Memory region descriptor. the region descriptor main character.
    • region.name β€” ASCII, zero padded name. ASCII and zero padded, exactly like it says.
    • region.reserved β€” padding. it's padding, that's the job.
    • region.cpp_action β€” CPP Action. the CPP Action field.
    • region.cpp_token β€” CPP Token. the CPP Token field.
    • region.cpp_target β€” CPP Target ID. the CPP Target ID field.
    • region.page_offset β€” 256-byte page offset into target's CPP address. yes, exactly that.
    • region.page_size β€” size, in 256-byte pages. that's the size, in 256-byte pages.

πŸ”₯ SEE ALSO πŸ”₯

okay bestie, the kernel file is right here: ./drivers/net/ethernet/netronome/nfp/nfpcore/nfp_resource.c.

and these are the function besties you can also check out:


byeee πŸ’– source/version ./drivers/net/ethernet/netrono..., dated October 2026, and it's the struct nfp_resource_entry(9) page. mwah 🫢

πŸ“¦ where this page comes from