ps3_lpm_copy_tb_to_user(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 __user copy 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 to buf. 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 🫢:


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