mon_event_config_index_get(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this is mon_event_config_index_get(9) from the Kernel API Manual β€” and the whole vibe is that it gets the hardware index for the configurable event. that's the mission, periodt πŸ’…

🌸 SYNOPSIS 🌸

unsigned int mon_event_config_index_get (u32 evtid );

πŸŽ€ ARGUMENTS πŸŽ€

  • evtid β€” event id. literally the event id, no extra lore 🫢

πŸ¦‹ RETURN πŸ¦‹

  • 0 for evtid == QOS_L3_MBM_TOTAL_EVENT_ID β€” that's your zero case, bestie ✨
  • 1 for evtid == QOS_L3_MBM_LOCAL_EVENT_ID β€” that's your one case πŸŽ€
  • INVALID_CONFIG_INDEX for invalid evtid β€” the "nope, invalid" answer, iconic πŸ’€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./arch/x86/kernel/cpu/resctrl/rdtgroup.c β€” go peek if you're nosy, iykyk 🌸

source/version: ./arch/x86/kernel/cpu/resctrl Β· date: October 2026 β€” mwah, that's the page, slay πŸ’–πŸ¦‹

πŸ“¦ where this page comes from