STRUCT HISI_PTT_DMA_BUFFER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct hisi_ptt_dma_buffer(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” this is the struct hisi_ptt_dma_buffer page and honestly? it's a lil cutie. it's short, it's sweet, it's giving "two fields and a dream" ✨


πŸ’– NAME πŸ’–

struct hisi_ptt_dma_buffer β€” describes a single trace buffer of PTT trace, no cap πŸŽ€

the way that this is literally just the one job: it's the handy lil descriptor for one trace buffer. and if you're sitting there like "okay but what does the data actually look like inside it??" β€” bestie, that tea is spilled somewhere else. the detail of the data format is described in the documentation of the PTT device. so go read that, iykyk πŸ¦‹


✨ SYNOPSIS ✨

struct hisi_ptt_dma_buffer {
    dma_addr_t dma;
    void *addr;
 };

look at her. two members. tidy. iconic. πŸ‘‘


🫢 Members 🫢

  • dma β€” the DMA address of this buffer, and the key detail here is that it's the address visible to the device πŸ‘€ like, that's the view the hardware gets.
  • addr β€” the virtual address of this buffer, and this one's the address visible to the cpu 🧠 so that's the view your kernel code gets.
so yeah β€” same buffer, two addresses, two different audiences. one for the device, one for the cpu. dual citizenship fr fr πŸ’…

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/hwtracing/ptt/hisi_ptt.h
  • struct hisi_ptt_tune_desc(9)
  • struct hisi_ptt_trace_ctrl(9)
  • struct hisi_ptt_filter_desc(9)
  • struct hisi_ptt_filter_update_info(9)
  • struct hisi_ptt_pmu_buf(9)
  • struct hisi_ptt(9)

all the siblings!! go say hi, they're all in ./drivers/hwtracing/ptt together 🐝⭐


and that's the whole page, bestie β€” nothing missing, nothing extra, just vibes and facts. this one came straight out of ./drivers/hwtracing/ptt, dated October 2026, and it's the struct hisi_ptt_dma_buffer(9) manual page πŸ’œ mwah, go read the next one πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from