sdca_ump_write_message(9)
π 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 thestruct deviceused 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 π
- The caller should first call
sdca_ump_get_owner_hostto ensure the host currently owns the UMP buffer. got it? host owns the buffer first. periodt π - Then this function β
sdca_ump_write_messageβ can be used to write a message. that's her moment. that's her whole job β¨ - Finally,
sdca_ump_set_owner_deviceshould 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 π§
- Kernel file
./sound/soc/sdca/sdca_ump.c sdca_ump_get_owner_host(9)sdca_ump_set_owner_device(9)sdca_ump_read_message(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms