nhi_mailbox_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ 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 here
  • cmd β€” Command to send πŸ“¨ the one you're yeeting off to the firmware
  • data β€” 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 ✨

  • 0 on success πŸŽ€ slay
  • negative errno otherwise 😭 not slay

✨ SEE ALSO ✨

Kernel file ./drivers/thunderbolt/nhi.c plus the whole thunderbolt ring crew, all of them, no one left behind:


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