ps3_lpm_copy_tb_to_user(9)
π NAME
okay so we're in the Kernel API Manual, and today's main character is ps3_lpm_copy_tb_to_user(9) β official vibe: Copy data from the trace buffer to a user buffer. no cap, that's the whole name moment π
β¨ SYNOPSIS
int ps3_lpm_copy_tb_to_user (unsigned long offset , void __user *buf ,
unsigned long count , unsigned long *bytes_copied );
π ARGUMENTS
offsetβ Offset in bytes from the start of the trace buffer. literally where you're starting, bestie πbufβ A__usercopy destination. that's the user-side spot the data goes to π«Άcountβ Maximum count of bytes to copy. the upper limit, periodt β¨bytes_copiedβ Pointer to a variable that will receive the number of bytes copied tobuf. it catches the actual byte count for you π
π¦ DESCRIPTION
okay so here's the important bit: On error buf will contain any successfully copied trace buffer data, and bytes_copied will be set to the number of bytes successfully copied. that's the whole mood β even when things go sideways, the successfully copied trace buffer data is still in buf, and bytes_copied reflects the bytes that made it ππ
π SEE ALSO
Kernel file ./drivers/ps3/ps3-lpm.c is the spot, and here's the whole friend group β not me listing every single one, because we keep all the lore π«Ά:
struct ps3_lpm_shadow_regs(9)struct ps3_lpm_priv(9)ps3_read_phys_ctr(9)ps3_write_phys_ctr(9)ps3_read_ctr(9)ps3_write_ctr(9)ps3_read_pm07_control(9)ps3_write_pm07_control(9)ps3_read_pm(9)ps3_write_pm(9)ps3_get_ctr_size(9)ps3_set_ctr_size(9)ps3_enable_pm(9)ps3_disable_pm(9)ps3_lpm_copy_tb(9)ps3_get_and_clear_pm_interrupts(9)ps3_enable_pm_interrupts(9)ps3_lpm_open(9)ps3_lpm_close(9)
mwah π source/version: ./drivers/ps3 Β· date: October 2026 Β· page: ps3_lpm_copy_tb_to_user(9) β slay and goodbye, 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