dmi_find_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ dmi_find_device(9) πŸŽ€

okay so bestie, welcome to the Kernel API Manual β€” this is the dmi_find_device(9) page, and it's literally about finding an onboard device by type/name. Main character energy for firmware lookup, no cap. Let's get into it πŸ’…

✨ NAME ✨

dmi_find_device - find onboard device by type/name

🌸 SYNOPSIS 🌸

const struct dmi_device * dmi_find_device (int type , const char *name ,
       const struct dmi_device *from );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • type β€” device type, or DMI_DEV_TYPE_ANY to match, like, all device types.
  • name β€” device name string, or NULL to match all.
  • from β€” previous device found in search, or NULL for a new search.

πŸ’– DESCRIPTION πŸ’–

So here's the vibe: it iterates through the list of known onboard devices. If a device is found with a matching type and name, you get back a pointer to its device structure. Otherwise, NULL is returned. A new search is initiated by passing NULL as the from argument. If from is not NULL, searches continue from the next device. πŸ’«

🌈 SEE ALSO 🌈


mwah πŸ’‹ that's the whole page, bestie. Source/version: ./drivers/firmware Β· date: October 2026. Now go be iconic with your DMI lookups 🫢✨

πŸ“¦ where this page comes from