ionic_color_wrap(9)
β¨ ionic_color_wrap β¨
okay so bestie, welcome to the Kernel API Manual π
β this one's a tiny lil function page for ionic_color_wrap(9), and honestly? she's short but she's iconic. no cap.
πΈ NAME πΈ
ionic_color_wrap β flip the color if prod is wrapped π
like, literally that's the whole vibe. prod wrapped? color flips. periodt.
π¦ SYNOPSIS π¦
bool ionic_color_wrap (u16 prod , bool color );
copy it exactly, don't @ me about the spacing, that's just how she is β¨
π ARGUMENTS π
prodβ queue index just after advancing π this is the "where are we now" number, bestiecolorβ queue color just prior to advancing the index π¨ i.e. the color you had before the index moved, keep that in mind
β RETURN β
the color after advancing the index π that's it, that's the whole return value, she's not complicated and we love her for it
π SEE ALSO π
- Kernel file
./drivers/infiniband/hw/ionic/ionic_queue.hstructionic_queue(9)β go read the struct, iykyk π§ ionic_queue_init(9)ionic_queue_destroy(9)ionic_queue_empty(9)ionic_queue_length(9)ionic_queue_length_remaining(9)ionic_queue_full(9)ionic_queue_at(9)ionic_queue_at_prod(9)ionic_queue_at_cons(9)ionic_queue_next(9)ionic_queue_produce(9)ionic_queue_consume(9)ionic_queue_consume_entries(9)ionic_queue_dbell_init(9)ionic_queue_dbell_val(9)
like, the whole queue squad fr fr π«Ά go click through all of them, they're all main characters in this story
π quick vibe check: this is a kernel API page, so treat it with respect β she may be cute but she's running in kernelspace, bestie
okay that's the page!! mwah π this cutie lives in ./drivers/infiniband/hw/ionic, dated October 2026, and she's serving Kernel API Manual realness β slay, ate, no crumbs left, bye bestie πβ¨π¦
π¦ 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