STRUCT NBPF_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct nbpf_desc πŸ’…

okay so this page lives in the Kernel API Manual (yes, that's the manual name, we're fancy now ✨) and it's all about struct nbpf_desc β€” literally the DMA transfer descriptor, no cap 🫢


🌸 NAME 🌸

struct nbpf_desc β€” the DMA transfer descriptor. that's it, that's the whole vibe. a little struct with a big job πŸ’–


✨ SYNOPSIS ✨

struct nbpf_desc {
    struct dma_async_tx_descriptor async_tx;
    bool user_wait;
    size_t length;
    struct nbpf_channel *chan;
    struct list_head sg;
    struct list_head node;
 };

like, look at her. six fields. main character energy fr fr πŸ‘‘


πŸŽ€ Members πŸŽ€

  • async_tx β€” the dmaengine object. the actual engine-y part, she's the plug πŸ”Œ
  • user_wait β€” a bool that says we're waiting for a user ack. yes bestie, we're on read until they respond πŸ™ˆ
  • length β€” the total transfer length, size_t and everything. how much we're moving, iconic πŸ’«
  • chan β€” the associated DMAC channel, a struct nbpf_channel *. her assigned channel, iykyk πŸ¦‹
  • sg β€” a struct list_head that's the list of hardware descriptors, represented by struct nbpf_link_desc. not the scatterlist itself, the list of hardware descriptors β€” read it carefully babe, there will be a quiz πŸ“
  • node β€” a struct list_head that's this struct's member in channel descriptor lists. she's on the list, literally πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/dma/nbpfaxi.c
  • struct nbpf_channel(9) β€” go read it next, it's giving sequel energy 🎬

lowkey reminder: this is kernel API docs, so like… the details matter. every field, every type, every pointer. slay responsibly πŸ’€

and that's the whole thing bestie, hope it ate πŸ’– this was ./drivers/dma, October 2026, struct nbpf_desc(9) β€” mwah, see u in the next manpage πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from