dsm_evaluate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dsm_evaluate(9) β€” like, the Kernel API Manual page, bestie ✨

okay so welcome to dsm_evaluate(9), straight out of the Kernel API Manual and honestly? she's a little icon. tiny function, big job: she sends the DSM PCIe SSD Status LED command. yes, that one. the blinky light. the main character of your drives. 🌈


πŸŽ€ NAME

dsm_evaluate β€” send DSM PCIe SSD Status LED command. that's it, that's the whole vibe check. πŸ¦‹


✨ SYNOPSIS

int dsm_evaluate (struct pci_dev *pdev , u64 dsm_func , struct
dsm_output *output , u32 value_to_set );

like, four args, returns an int, we love a simple signature fr fr πŸ’–


🌸 ARGUMENTS

  • pdev β€” PCI device. the actual PCI device you're working with, periodt. 🫢
  • dsm_func β€” DSM LED Function. which LED function you're asking for, iykyk. πŸ”₯
  • output β€” buffer to copy DSM Response. she's the destination, the place the response gets copied to, no cap. πŸŽ€
  • value_to_set β€” value for SET_STATE_DSM function. so like, the value you want to set when you're doing the SET_STATE_DSM thing. πŸ’…

πŸ’œ DESCRIPTION

okay so the whole point: to not bother the caller with ACPI context, the returned _DSM Output Buffer is copied. 🫢

that's it!! that's the entire character arc!! you don't have to deal with ACPI context, because the returned _DSM Output Buffer gets copied for you. lowkey thoughtful of her ngl ✨


πŸ¦‹ SEE ALSO

  • Kernel file ./drivers/pci/npem.c
  • struct npem_led(9)
  • struct npem_ops(9)
  • struct npem(9)

go read the friends, they're all linked in the kernel file ./drivers/pci/npem.c and they ate, honestly πŸ‘‘


πŸ’€ reminder bestie: everything above is literally the whole manpage. no extra lore, no invented behaviour, just the facts with a glow-up. 🧚

mwah πŸ’‹ this page lives in ./drivers/pci, dated October 2026, and she's called dsm_evaluate(9) β€” slay, bye!! πŸ“βœ¨

πŸ“¦ where this page comes from