papr_phy_at...reate_handle(9)
π papr_phy_attest_create_handle β the Kernel API Manual, but make it make sense π
okay so bestie, we're in the Kernel API Manual, and today's main character is papr_phy_attest_create_handle. no cap, this one's a lil niche but it eats.
β¨ NAME β¨
papr_phy_attest_create_handle β creates a fd-based handle so you can read the response for a given attestation command π¦
πΈ SYNOPSIS πΈ
long papr_phy_attest_create_handle (struct papr_phy_attest_io_block
__user *ulc );
π ARGUMENTS π
ulcβ the attestation command, living in user memory π«Ά. it literally defines the scope of data for the attestation command to retrieve. that's its whole job.
π DESCRIPTION π
so this is the handler for the PAPR_PHYSICAL_ATTESTATION_IOC_CREATE_HANDLE ioctl command. iconic behavior only.
it validates ulc and instantiates an immutable response "blob" for the attestation command β¨. that blob gets attached to a file descriptor for reading by user space, and the memory backing the blob is freed when the file is released. clean. no leaks. we love to see it π
and here's the part where it gets highkey smart: the entire requested response buffer for the attestation command retrieved by this call β plus all the necessary RTAS interactions β is performed before returning the fd to user space π«‘. this keeps the read handler simple, and it ensures the kernel can prevent interleaving ibm,physical-attestation call sequences. like, no interleaving. not on her watch. periodt.
π₯ RETURN π₯
the installed fd number if it slays (successful), or -ve errno otherwise π
π SEE ALSO π
- the kernel file
./arch/powerpc/platforms/pseries/papr-phy-attest.c struct rtas_phy_attest_params(9)rtas_physical_attestation(9)phy_attest_sequence_begin(9)phy_attest_sequence_end(9)
and that's the whole vibe check π§π this one lives in ./arch/powerpc/platforms/pseries, dated October 2026 β see u at the next papr_phy_at...reate_handle(9) reading, 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