dmi_memdev_handle(9)
π dmi_memdev_handle(9) β straight outta the Kernel API Manual β¨
Okay bestie, welcome to the dmi_memdev_handle(9) page. We're in the Kernel API Manual, and this function is lowkey tiny but iconic. Let's get into it π«Ά.
π NAME π
dmi_memdev_handle β get the DMI handle of a memory slot. That's the whole assignment: grab the DMI handle for a memory slot. Slay.
π SYNOPSIS π
Here's the signature, copied exactly so nobody has to guess:
u16 dmi_memdev_handle (int slot );
πΈ ARGUMENTS πΈ
slotβ slot number. Literally the slot number, no cap. It's theint slotfrom the synopsis, and that's the vibe π .
π¦ DESCRIPTION π¦
Okay so this function returns the DMI handle associated with a given memory slot. If there is no such slot, it returns 0xFFFF instead. That's the "no such slot" answer, periodt. The return type is u16, just like the synopsis says.
π SEE ALSO π
Kernel file: ./drivers/firmware/dmi_scan.c. And here's the whole DMI bestie group chat β all the related manual pages, listed exactly:
dmi_setup(9)dmi_matches(9)dmi_is_end_of_table(9)dmi_check_system(9)dmi_first_match(9)dmi_get_system_info(9)dmi_name_in_serial(9)dmi_name_in_vendors(9)dmi_find_device(9)dmi_get_date(9)dmi_get_bios_year(9)dmi_walk(9)dmi_match(9)dmi_memdev_type(9)
Cute lil sign-off: source/version corner is ./drivers/firmware, the date is October 2026, and this is the dmi_memdev_handle(9) manual page. Byeee πβ¨
π¦ 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