STRUCT TPDM_DATASET_ATTRIBUTE(9)
π struct tpdm_dataset_attribute(9) β Kernel API Manual, bestie edition β¨
Okay so picture this: you're in the Kernel API Manual, and there's this lil struct called struct tpdm_dataset_attribute whose whole entire job is recording the member variables and index number of datasets that need to be operated by sysfs file. That's it, that's the vibe. It's giving "I know a guy who knows which dataset field you meant" π
β¨ SYNOPSIS β¨
struct tpdm_dataset_attribute {
struct device_attribute attr;
enum dataset_mem mem;
u32 idx;
};
No cap, that's the whole shape of it. Three members, all iconic, all doing their own thing π
π«Ά Members π«Ά
attrβ the device attribute π literally just thestruct device_attribute, living its best life, nothing extra going on here.memβ the member in the dataset data structure. Which one? That's what this field is for, bestie. It's anenum dataset_mem, so it knows exactly which member we're talking about π¦idxβ the index number of the array data. Au32. So when the dataset field is an array, this tells you which slot in it we're operating on. Periodt πΈ
π SEE ALSO π
- Kernel file
./drivers/hwtracing/coresight/coresight-tpdm.h struct dsb_dataset(9)struct cmb_dataset(9)struct tpdm_drvdata(9)
Lowkey obsessed with how tidy this one is. Go read the header file if you want the full lore, iykyk πβ¨
And that's a wrap, bestie π§ β brought to you by the fine people over at ./drivers/hwtracing/coresight, dated October 2026, header and footer respectfully folded into this message because we're cute like that πβ
π¦ 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