STRUCT NITROX_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct nitrox_device(9) πŸ’–

okay bestie, so this is the Kernel API Manual page for struct nitrox_device β€” the NITROX Device Information struct ✨. if you've ever wondered "what even is a nitrox device, and what's living inside it," this is literally the whole vibe check. scroll with me 🫢


✨ NAME ✨

struct nitrox_device β€” NITROX Device Information. that's it, that's the whole thing, she's a struct and she's iconic πŸ’…


🌸 SYNOPSIS 🌸

here's the literal anatomy of her, no cap, copy-pasted straight from the source so you don't get any funny ideas:

struct nitrox_device {
    struct list_head list;
    u8 __iomem *bar_addr;
    struct pci_dev *pdev;
    atomic_t state;
    unsigned long flags;
    unsigned long timeout;
    refcount_t refcnt;
    u8 idx;
    int node;
    u16 qlen;
    u16 nr_queues;
    enum vf_mode mode;
    struct dma_pool *ctx_pool;
    struct nitrox_cmdq *pkt_inq;
    struct nitrox_cmdq *aqmq[MAX_DEV_QUEUES];
    struct nitrox_q_vector *qvec;
    struct nitrox_iov iov;
    int num_vecs;
    struct nitrox_stats stats;
    struct nitrox_hw hw;
  #if IS_ENABLED(CONFIG_DEBUG_FS);
    struct dentry *debugfs_dir;
  #endif;
};

like, look at all those fields. main character energy fr πŸ”₯


πŸŽ€ Members πŸŽ€

this is the part where we meet every single field one by one, like a little meet-and-greet but for struct members 🧚

  • list β€” pointer to the linked list of devices. she's connected, she has friends πŸ’«
  • bar_addr β€” the iomap address. that's where the memory-mapped action happens ✨
  • pdev β€” PCI device information, so you know which physical device we're talking about πŸ¦‹
  • state β€” NITROX device state. how's she doing? this tells you πŸ’œ
  • flags β€” flags to indicate device the features. yes, that's the wording, love that for us πŸ’…
  • timeout β€” Request timeout, measured in jiffies. tick tock bestie ⏰
  • refcnt β€” Device usage count. how many people are holding onto her rn πŸ™ˆ
  • idx β€” device index, in the range 0..N πŸ”’
  • node β€” the NUMA node id she's attached to. she knows her local memory 🌸
  • qlen β€” Command queue length πŸ“
  • nr_queues β€” Number of command queues. the more the merrier honestly πŸ‘‘
  • mode β€” Device mode, PF/VF β€” she's either physical or virtual, pick a lane πŸ’«
  • ctx_pool β€” DMA pool for crypto context. spa day for your crypto context πŸ›
  • pkt_inq β€” Packet input rings πŸ’
  • aqmq β€” AQM command queues πŸ—£οΈ
  • qvec β€” MSI-X queue vectors information πŸ“¬
  • iov β€” SR-IOV informatin (yes, that's literally how it's spelled in the source β€” don't come for me, I don't make the typos πŸ’€)
  • num_vecs β€” number of MSI-X vectors πŸ”’
  • stats β€” request statistics. the receipts πŸ“Š
  • hw β€” hardware information πŸ› οΈ
  • debugfs_dir β€” the debugfs directory. peek behind the curtain bestie πŸ‘€

🌈 SEE ALSO 🌈

go read these next, they're giving the same energy:


okay that's the whole page, you ate that bestie πŸ“ and for the cute sign-off: this one lives at ./drivers/crypto/cavium/nitrox, it's dated October 2026, and it goes by struct nitrox_device(9) πŸ¦‹πŸ’– mwah, bye!! ⭐

πŸ“¦ where this page comes from