hsi_alloc_msg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to the hsi_alloc_msg(9) page from the Kernel API Manual β€” this one is literally all about allocating an HSI message πŸ’–

✨ SYNOPSIS ✨

struct hsi_msg * hsi_alloc_msg (unsigned int nents , gfp_t flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nents β€” the number of memory entries, periodt.
  • flags β€” the kernel allocation flags, no cap.

🌸 DESCRIPTION 🌸

so here's the tea: nents can be 0. This mainly makes sense for read transfer. In that case, HSI drivers will call the complete callback when there is data to be read without consuming it πŸ‘‘

Return NULL on failure, or a pointer to an hsi_msg on success. That's the whole vibe check πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./drivers/hsi/hsi_core.c β€” and yes, the whole friend group is here:


signing off from ./drivers/hsi, October 2026 β€” hsi_alloc_msg(9) out, slay πŸ’…πŸ’–

πŸ“¦ where this page comes from