decode_mtr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… decode_mtr(9) β€” the Kernel API Manual page, but make it make sense πŸŽ€

okay bestie, so this one is from the Kernel API Manual and it's called decode_mtr(9) β€” say it with me: dee-code em-tee-arr, it's giving "gritty low-level hardware detective work" and honestly? iconic. ✨


🌸 NAME 🌸

decode_mtr β€” literally decodes the MTR descriptor and fills up the edac structs. that's the whole job. no cap. 🫢


✨ SYNOPSIS ✨

int decode_mtr (struct i7300_pvt *pvt , int slot , int ch , int branch ,
struct i7300_dimm_info *dinfo , struct dimm_info *dimm );

πŸ‘‘ ARGUMENTS πŸ‘‘

okay so here's the cast of characters, and every single one of them matters, don't skip πŸ’…

  • pvt β€” pointer to the private data struct that the i7300 driver uses. it's the driver's little backstage pass. 🎟️
  • slot β€” the DIMM slot, and it lives in the range 0 to 7. so eight possibilities, choose wisely. πŸ™ˆ
  • ch β€” channel number within the branch. it's either 0 or 1. binary baddie behavior. πŸ¦‹
  • branch β€” branch number. also 0 or 1. yes it's another one, keep up bestie. ⭐
  • dinfo β€” pointer to DIMM info where the dimm size gets stored. that's where the tea lives. πŸ“
  • dimm β€” pointer to the struct dimm_info that corresponds to that element. the matching piece, the pair, the duo. πŸ’–

🌈 SEE ALSO 🌈

all the siblings and cousins, fr fr β€” these are in the kernel file ./drivers/edac/i7300_edac.c:

get_err_from_table(9), i7300_process_error_global(9), i7300_process_fbd_error(9), i7300_check_error(9), i7300_clear_error(9), i7300_set_error_reporting(9), print_dimm_size(9), i7300_init_csrows(9), decode_mir(9), i7300_get_mc_regs(9), i7300_put_devices(9), i7300_get_devices(9), i7300_init_one(9), i7300_remove_one(9), i7300_init(9), i7300_exit(9)


go read them. all of them. i'll wait. 🧚

so yeah, that's the whole vibe check πŸ’€ β€” and this little love letter comes from ./drivers/edac, dated October 2026, filed right under decode_mtr(9). mwah, slay, periodt. πŸ’œπŸ”₯

πŸ“¦ where this page comes from