nhi_mailbox_cmd(9)
π nhi_mailbox_cmd(9) β the kernel API manual, bestie edition π
okay so welcome to the nhi_mailbox_cmd(9) page, from your fave kernel API manual π«Ά this one is short and sweet, so let's get into it.
β¨ NAME β¨
nhi_mailbox_cmd β Send a command through NHI mailbox π¬
like, literally that's the whole job. it sends a command through the NHI mailbox. iconic behavior.
β¨ SYNOPSIS β¨
int nhi_mailbox_cmd (struct tb_nhi *nhi , enum nhi_mailbox_cmd cmd , u32
data );
look at that signature. so clean. so demure. π
β¨ ARGUMENTS β¨
nhiβ Pointer to the NHI structure πΈ that's your NHI, she's the main character herecmdβ Command to send π¨ the one you're yeeting off to the firmwaredataβ Data to be send with the command π yes bestie, the original says "send" not "sent", and we're keeping it that way, no cap
β¨ DESCRIPTION β¨
Sends mailbox command to the firmware running on NHI. π§ that's it. that's the vibe. you hand it a command and some data, and off it goes to the firmware living on the NHI. lowkey simple, highkey essential.
β¨ RETURN β¨
0on success π slay- negative
errnootherwise π not slay
β¨ SEE ALSO β¨
Kernel file ./drivers/thunderbolt/nhi.c plus the whole thunderbolt ring crew, all of them, no one left behind:
tb_ring_poll(9)tb_ring_poll_complete(9)tb_ring_alloc_tx(9)tb_ring_alloc_rx(9)tb_ring_start(9)tb_ring_flush(9)tb_ring_stop(9)tb_ring_throttling(9)nhi_mailbox_mode(9)
fr fr go read those too, they're all in the same friend group π
and that's the page!! π¦ sign-off time: this lil manual lives in ./drivers/thunderbolt, dated October 2026, and honestly? she ate. πβπ
periodt.
π¦ 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