STRUCT MLXBF_TMFIFO(9)
π struct mlxbf_tmfifo(9) β Kernel API Manual π
okay so bestie, welcome to the glow-up of the kernel API manual page for struct mlxbf_tmfifo β¨ this is the TmFifo struct and she is lowkey the main character of her own header file. grab a strawberry drink π and let's get into it.
πΈ NAME πΈ
struct mlxbf_tmfifo β Structure of the TmFifo π
β¨ SYNOPSIS β¨
here's the whole fit, bestie, copied exactly so you don't have to squint at the source:
struct mlxbf_tmfifo {
struct mlxbf_tmfifo_vdev *vdev[MLXBF_TMFIFO_VDEV_MAX];
struct mutex lock;
void __iomem *res0;
void __iomem *res1;
struct mlxbf_tmfifo_io rx;
struct mlxbf_tmfifo_io tx;
int rx_fifo_size;
int tx_fifo_size;
unsigned long pend_events;
struct mlxbf_tmfifo_irq_info irq_info[MLXBF_TM_MAX_IRQ];
struct work_struct work;
struct timer_list timer;
struct mlxbf_tmfifo_vring *vring[2];
spinlock_t spin_lock[2];
bool is_ready;
};
π¦ Members π¦
okay this is the part where we meet the whole squad, one member at a time π«Ά
vdevβ array of the virtual devices running over the TmFifo. the whole friend group, fr fr πlockβ lock to protect the TmFifo access. nobody touches the TmFifo without taking the lock first, no cap πres0β mapped resource block 0. iconic. we stan πres1β mapped resource block 1. the sequel, and honestly she ate πrxβ rx io resource πtxβ tx io resource πrx_fifo_sizeβ number of entries of the Rx FIFO. literally just the count, bestie πtx_fifo_sizeβ number of entries of the Tx FIFO. same energy, other direction πpend_eventsβ pending bits for deferred events. the "brb, doing it later" bits βirq_infoβ interrupt information π₯workβ work struct for deferred process π§timerβ background timer. she's ticking away in the background, minding her business β°vringβ Tx/Rx ring π«spin_lockβ Tx/Rx spin lock. two of them, spinny, doing the most πis_readyβ ready flag. the vibe check boolean, and if she'struethen we're so on π
π SEE ALSO π
go read these next, bestie, iykyk:
- Kernel file
./drivers/platform/mellanox/mlxbf-tmfifo.cstructmlxbf_tmfifo_vring(9),struct mlxbf_tmfifo_vdev(9),struct mlxbf_tmfifo_irq_info(9),struct mlxbf_tmfifo_io(9),struct mlxbf_tmfifo_msg_hdr(9)
ngl this page lives in ./drivers/platform/mellanox, and it's dated October 2026 β so yeah, coming to a kernel near you, periodt π
β¨
and that's the whole page, bestie β TmFifo documented, structure slayed, nobody left confused. mwah π«Άπ
π¦ 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