snd_hda_get_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to snd_hda_get_devices(9) from the Kernel API Manual β€” and the whole vibe is literally copy device list without cache. not me explaining the cache drama, it's right there in the name. πŸ’…

✨ SYNOPSIS ✨

unsigned int snd_hda_get_devices (struct hda_codec *codec , hda_nid_t
nid , u8 *dev_list , unsigned int max_devices );

πŸŽ€ ARGUMENTS πŸŽ€

  • codec β€” the HDA codec. your main-character struct, fr fr.
  • nid β€” NID of the pin to parse. yes bestie, the pin. parse it. πŸ¦‹
  • dev_list β€” device list array. this is where the list goes.
  • max_devices β€” max. number of devices to store. that's the cap, no cap. πŸ™ˆ

πŸ’« DESCRIPTION πŸ’«

Copy the device list. lowkey important: this info is dynamic and so not cached β€” do not expect a lil saved copy, bestie. currently it's called only from hda_proc.c, so it's not exported. periodt. ✨

🌈 SEE ALSO 🌈

Kernel file: ./sound/hda/common/codec.c β€” and here's the whole friend group, go say hi:


okay bye bestie 🫢 this page lives in ./sound/hda/common, dated October 2026, and it's snd_hda_get_devices(9) forever. slay. πŸ’…

πŸ“¦ where this page comes from