STRUCT MLXBF_TMFIFO_VRING(9)
π NAME π
okay so bestie, this is the struct mlxbf_tmfifo_vring(9) page from the Kernel API Manual β and it's literally all about the Structure of the TmFifo virtual ring. main character struct energy, fr fr. π
π¦ SYNOPSIS π¦
here's the whole struct, copied exactly because we do not mess with code, periodt:
struct mlxbf_tmfifo_vring {
void *va;
dma_addr_t dma;
struct virtqueue *vq;
struct vring_desc *desc;
struct vring_desc *desc_head;
struct vring_desc drop_desc;
int cur_len;
int rem_len;
int rem_padding;
u32 pkt_len;
u16 next_avail;
int num;
int align;
int index;
int vdev_id;
unsigned long tx_timeout;
struct mlxbf_tmfifo *fifo;
};
πΈ Members πΈ
let's go member by member, no skips, no cap:
vaβ virtual address of the ringdmaβ dma address of the ringvqβ pointer to the virtio virtqueuedescβ current descriptor of the pending packetdesc_headβ head descriptor of the pending packetdrop_descβ dummy desc for packet droppingcur_lenβ processed length of the current descriptorrem_lenβ remaining length of the pending packetrem_paddingβ remaining bytes to send as paddingspkt_lenβ total length of the pending packetnext_availβ next avail descriptor idnumβ vring size (number of descriptors)alignβ vring alignment sizeindexβ vring indexvdev_idβ vring virtio id (VIRTIO_ID_xxx)tx_timeoutβ expire time of last tx packetfifoβ pointer to the tmfifo structure
π₯ SEE ALSO π₯
Kernel file ./drivers/platform/mellanox/mlxbf-tmfifo.c plus the whole squad: struct mlxbf_tmfifo_vdev(9), struct mlxbf_tmfifo_irq_info(9), struct mlxbf_tmfifo_io(9), struct mlxbf_tmfifo(9), and struct mlxbf_tmfifo_msg_hdr(9). go read them too, iykyk π
sign-off: this page is from source/version ./drivers/platform/mellanox, dated October 2026, and yes it's the struct mlxbf_tmfifo_vring(9) page. slay and goodbye π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms