setup_mm_hdr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– setup_mm_hdr(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” this page is all about setup_mm_hdr(9), and it's lowkey iconic. 🫢


✨ NAME ✨

setup_mm_hdr β€” Allocate a buffer for StandAloneMM and initialize the header data. that's the whole assignment, no cap. πŸ’…

🌸 SYNOPSIS 🌸

the signature is giving:

void * setup_mm_hdr (u8 **dptr , size_t payload_size , size_t func );

πŸŽ€ ARGUMENTS πŸŽ€

  • dptr β€” pointer address to store allocated buffer. bestie, this is the spot where the allocated buffer gets stored. πŸ“
  • payload_size β€” payload size. literally the payload size, that's it. πŸ“
  • func β€” standAloneMM function number. yep, the function number. πŸ”’

πŸ”₯ RETURN πŸ”₯

returns a pointer to the corresponding StandAloneMM function buffer, or NULL. that's the tea. β˜•

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/firmware/efi/stmm/tee_stmm_efi.c β€” the source file to peek at, iykyk. πŸ‘€
  • tee_mm_communicate(9) β€” another one to check out. ✨
  • mm_communicate(9) β€” yes bestie, this too. πŸ’œ
  • get_max_payload(9) β€” and this one. periodt. πŸ’…

mwah πŸ’‹ this page comes from ./drivers/firmware/efi/stmm, dated October 2026, and it's all about setup_mm_hdr(9). bye bestie, go allocate something cute πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from