STRUCT HISI_PTT_DMA_BUFFER(9)
πΈ 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
- 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