tsm_mr_crea...ribute_group(9)
π NAME π
okay so bestie, this page is all about tsm_mr_create_attribute_group β and what it does is literally create an attribute group for measurement registers (MRs). that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
const struct attribute_group * tsm_mr_create_attribute_group (const
struct tsm_measurements *tm );
like, yes, that's the whole signature, no notes π
πΈ ARGUMENTS πΈ
tmβ a pointer tostruct tsm_measurements, and inside that bad boy live the MR definitions. she's the main character of this function, fr fr π
π¦ DESCRIPTION π¦
so this function makes attributes that correspond to the MR definitions that tm->mrs is serving up. the way it just... matches them up? iconic. π«Ά
π¨ IMPORTANT ONE, DON'T SKIP: the attributes it creates will referencetmand its members. so the caller must not freetmuntil aftertsm_mr_free_attribute_grouphas been called. periodt. no cap, this one actually matters β free that struct too early and it's giving undefined chaos π
β CONTEXT β
process context, bestie. and yes, she may sleep β because of memory allocation. let her nap. π΄π
π₯ RETURN π₯
- on success, you get back the pointer to an attribute group. slay. β¨
- otherwise, it's one of these little guys:
-EINVALβ the MR definitions are invalid π-ENOMEMβ out of memory π
π SEE ALSO π
- the kernel file
./drivers/virt/coco/guest/tsm-mr.cβ go read the source, iykyk π tsm_mr_free_attribute_group(9)β the cleanup bestie, you'll be needing her π
and that's the whole page, gorgeous π§β¨ this little gem lives in ./drivers/virt/coco/guest, it's dated October 2026, and it's the tsm_mr_crea...ribute_group(9) entry from the Kernel API Manual β mwah, go build something ππΈπ
π¦ 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