sdca_ump_write_message(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ sdca_ump_write_message(9) β€” bestie's guide to the Kernel API Manual ✨

okay so this is the page for sdca_ump_write_message, and no cap, it's literally the "write a UMP message to the device" girlie. that's the whole NAME vibe πŸŽ€


🌸 SYNOPSIS 🌸

int sdca_ump_write_message (struct device *dev , struct regmap
*device_regmap , struct regmap *function_regmap , struct
sdca_function_data *function , struct sdca_entity *entity , unsigned int
offset_sel , unsigned int msg_offset , unsigned int length_sel , void
*msg , int msg_len );

look at her. ten parameters. main character energy fr fr πŸ’…


✨ ARGUMENTS ✨

okay bestie, let's meet the cast 🫢

  • dev β€” Pointer to the struct device used for error messages. like, when things go wrong, this is who gets to complain about it 😭
  • device_regmap β€” Pointer to the Device register map. iconic. essential. hold onto her πŸ”₯
  • function_regmap β€” Pointer to the regmap for the SDCA Function. yes she's a different regmap from the device one, don't mix them up bestie πŸ™ˆ
  • function β€” Pointer to the Function information.
  • entity β€” Pointer to the SDCA Entity.
  • offset_sel β€” Control Selector for the UMP Offset Control.
  • msg_offset β€” Offset within the UMP buffer at which the message should be written. like, where exactly in the buffer we're placing her πŸ’…
  • length_sel β€” Control Selector for the UMP Length Control.
  • msg β€” Pointer to the data that should be written to the UMP buffer.
  • msg_len β€” Length of the message data in bytes. count them bytes, queen πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the order of operations here is not optional, bestie β€” the way this works is a whole little three-step routine and you gotta do it in order 🌈

  1. The caller should first call sdca_ump_get_owner_host to ensure the host currently owns the UMP buffer. got it? host owns the buffer first. periodt πŸ‘‘
  2. Then this function β€” sdca_ump_write_message β€” can be used to write a message. that's her moment. that's her whole job ✨
  3. Finally, sdca_ump_set_owner_device should be called to return the buffer to the device, allowing the device to access the message. you must hand it back, otherwise the device can't see the message you just wrote 😭
lowkey the whole arc is: check ownership β†’ write β†’ hand back. skip a step and it's giving chaos πŸ’€

πŸ’– RETURN πŸ’–

  • Returns zero on success 😌✨
  • and a negative error code on failure 😭

that's it. zero = slay, negative = not slay. iykyk πŸŽ€


🧚 SEE ALSO 🧚

like the whole friend group honestly, go read them all 🫢


πŸ’œ and that's the page!! source/version vibes: this one lives in ./sound/soc/sdca, dated October 2026, and it's sdca_ump_write_message(9) β€” the manual header up top and this footer are the whole official package, so now you know exactly where she came from. bye bestie, go write some UMP messages responsibly πŸŒΈβœ¨πŸ¦‹

πŸ“¦ where this page comes from