STRUCT TSM_REPORT_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct tsm_report_ops(9) ✨

okay bestie, welcome to the Kernel API Manual entry for struct tsm_report_ops β€” literally the attributes and operations for tsm_report instances. she's a lil struct, but she's got range πŸ’…


πŸ’– NAME πŸ’–

struct tsm_report_ops β€” attributes and operations for tsm_report instances 🫢


πŸŽ€ SYNOPSIS πŸŽ€

struct tsm_report_ops {
    const char *name;
    unsigned int privlevel_floor;
    int (*report_new)(struct tsm_report *report, void *data);
    bool (*report_attr_visible)(int n);
    bool (*report_bin_attr_visible)(int n);
 };

πŸ¦‹ Members πŸ¦‹

  • name β€” the tsm id, and the way it shows up is literally at /sys/kernel/config/tsm/report/$report/provider ⭐ so when you're poking around in sysfs, that's her name tag iykyk
  • privlevel_floor β€” conveys the base privlevel for nested scenarios 🧚 not me thinking about privilege levels nestled inside each other like russian dolls
  • report_new β€” populates the report with the report blob and auxblob (auxblob is optional, no pressure bestie πŸ’œ), and returns 0 on a successful population, or -errno otherwise 😭
  • report_attr_visible β€” shows or hides a report attribute entry πŸ‘€ (yes she's got main character energy over what you're allowed to see)
  • report_bin_attr_visible β€” shows or hides a report binary attribute entry πŸ‘‘ same vibe, binary edition

🌸 Description 🌸

these are the implementation specific ops, and here's the thing bestie: only one is expected to be registered at a time πŸ”₯ like, only one of "sev-guest", "tdx-guest", etc. so no, you can't have them all at once, that's not the vibe, periodt πŸ’€


🫢 SEE ALSO 🫢

  • Kernel file ./include/linux/tsm.h
  • struct tsm_report_desc(9)
  • struct tsm_report(9)
  • enum tsm_attr_index(9)
  • enum tsm_bin_attr_index(9)

go read those next, bestie, one of them literally says desc which is short for description, we LOVE a documentation pipeline 🌈


that's the whole page fr fr ✨ source vibes live in ./include/linux and she was dated October 2026 β€” like, futuristic queen πŸ’…πŸ‘‘ bye bestie, go read more manpages πŸŽ€

πŸ“¦ where this page comes from