plpks_read_bootloader_var(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

plpks_read_bootloader_var β€” okay bestie, this is the one that fetches the data for the specified variable owned by the bootloader consumer. It’s giving β€œbootloader’s own little PLPKS situation,” and we’re obsessed.

✨ SYNOPSIS ✨

int plpks_read_bootloader_var (struct plpks_var *var );

πŸŽ€ ARGUMENTS πŸŽ€

  • var β€” the variable to be read from the PLPKS. That’s the whole argument, no cap.

πŸ’œ DESCRIPTION πŸ’œ

okay so the consumer or the owner of the object is the bootloader. The H_PKS_READ_OBJECT HCALL reads an object from the PLPKS. The caller must allocate the buffer var->data and specify the length for this buffer in var->datalen. If no buffer is provided, var->datalen will be populated with the requested object’s size β€” literally the requested object’s size, bestie.

possible reasons for the returned errno values are giving:

  • -ENXIO β€” if PLPKS is not supported.
  • -EIO β€” if PLPKS access is blocked due to the LPAR’s state, if an error occurred while processing the request.
  • -EINVAL β€” if invalid authorization parameter, if invalid object label parameter, if invalid object label len parameter, if invalid output data parameter, if invalid output data len parameter.
  • -EPERM β€” if access is denied.
  • -ENOENT β€” if the requested object was not found.
  • -EFBIG β€” if the requested object couldn’t be stored in the buffer provided.
  • -EBUSY β€” if unable to handle the request.

⭐ RETURN ⭐

On success 0 is returned, a negative errno if not. That’s the vibe check, periodt.

🌈 SEE ALSO 🌈

Kernel file ./arch/powerpc/platforms/pseries/plpks.c, plus all these iconic section 9 friends:


mwah πŸ’‹ this page is plpks_read_bootloader_var(9), source/version ./arch/powerpc/platforms/pseries, dated October 2026. bye bestie 🫢

πŸ“¦ where this page comes from