STRUCT PS3_LPM_PRIV(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŒธ NAME ๐ŸŒธ

hiii bestie ๐Ÿ’– this is the page for struct ps3_lpm_priv(9) from the Kernel API Manual, and she is literally the private lpm device data struct. Private lpm device data. no cap.

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

struct ps3_lpm_priv {
    atomic_t open;
    u64 rights;
    u64 node_id;
    u64 pu_id;
    u64 lpm_id;
    u64 outlet_id;
    u64 tb_count;
    void *tb_cache;
    u64 tb_cache_size;
    void *tb_cache_internal;
    struct ps3_lpm_shadow_regs shadow;
    struct ps3_system_bus_device *sbd;
 };

๐Ÿ‘‘ Members ๐Ÿ‘‘

  • open โ€” an atomic_t variable that tells you the lpm driver has been opened. honestly iconic little open/closed vibe check โœจ
  • rights โ€” the lpm rights granted by the system policy module. it's a logical OR of enum ps3_lpm_rights ๐Ÿ”ฅ
  • node_id โ€” the node id of a BE processor whose performance monitor this lpar has the right to use. she's got permission, periodt.
  • pu_id โ€” the lv1 id of the logical PU.
  • lpm_id โ€” the lv1 id of this lpm instance.
  • outlet_id โ€” the outlet created by lv1 for this lpm instance.
  • tb_count โ€” the number of bytes of data held in the lv1 trace buffer. literally counting the bytes ๐Ÿ’…
  • tb_cache โ€” kernel buffer to receive the data from the lv1 trace buffer. must be 128 byte aligned. yes, alignment matters, bestie.
  • tb_cache_size โ€” size of the kernel tb_cache buffer. must be 128 byte aligned too ๐ŸŽ€
  • tb_cache_internal โ€” an unaligned buffer allocated by this driver to be used for the trace buffer cache when ps3_lpm_open is called with a NULL tb_cache argument. otherwise unused. she's on standby ๐Ÿฆ‹
  • shadow โ€” processor register shadow of type struct ps3_lpm_shadow_regs.
  • sbd โ€” the struct ps3_system_bus_device attached to this driver.

โœจ DESCRIPTION โœจ

okay so, the trace buffer is a buffer that gets allocated and used internally to the lv1 hypervisor to collect trace data.

the trace buffer cache is a guest buffer whose whole job is accepting the trace data from the trace buffer. that's the tea โ˜•๐Ÿ’…

๐Ÿ”ฎ SEE ALSO ๐Ÿ”ฎ

bestie, go peek at the kernel file ./drivers/ps3/ps3-lpm.c and then these absolute icons:


kisses from ./drivers/ps3 ๐Ÿ’‹ dated October 2026, and this whole page is about struct ps3_lpm_priv(9) ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from