sdw_cdns_alloc_pdi(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sdw_cdns_alloc_pdi πŸ’…

okay so real talk, this is a page from the Kernel API Manual (yes, that's the manual name, we're fancy now πŸŽ€) and it's about one tiny little function that grabs you a PDI. it's giving "small but crucial", honestly.


🌸 NAME 🌸

sdw_cdns_alloc_pdi β€” bestie, it literally just allocates a PDI. that's the whole vibe. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct sdw_cdns_pdi * sdw_cdns_alloc_pdi (struct sdw_cdns *cdns , struct
sdw_cdns_streams *stream , u32 ch , u32 dir , int dai_id );

like, copy that exactly bestie, don't be creative with it πŸ™ˆ β€” it returns a struct sdw_cdns_pdi * and takes five things. slay.


πŸ‘‘ ARGUMENTS πŸ‘‘

  • cdns β€” the Cadence instance. your main character struct, fr fr. everything hangs off this.
  • stream β€” the stream that's getting allocated. that's the one getting picked, periodt.
  • ch β€” channel count. how many channels, u32, you know the drill.
  • dir β€” data direction. u32. which way the data's going, iykyk.
  • dai_id β€” the DAI id. int. its little name tag πŸŽ€

πŸ”₯ SEE ALSO πŸ”₯

listen up, this list is long but every single one is iconic, do not skip πŸ’€

the kernel file lives right here, and yes it's the source of truth:

./drivers/soundwire/cadence_master.c

and then the whole friend group 🌈:

like, go read them, they're all right there in the kernel tree, it's giving lore 🧚


anyway that's the page bestie πŸ’œ hope the PDI allocation went well.

this little writeup lives over in ./drivers/soundwire, dated October 2026, and it's the sdw_cdns_alloc_pdi(9) page β€” mwah, bye πŸ«Άβœ¨πŸ“

πŸ“¦ where this page comes from