rsu_try_send_msg(9)
π rsu_try_send_msg(9) β kernel API manual, bestie edition
okay so bestie, we're in the kernel API manual today and the star of the show is rsu_try_send_msg(9). she's the non-blocking variant of rsu_send_msg() and she is not about to wait around for anybody. main character energy fr fr π
β¨ NAME β¨
rsu_try_send_msg β bestie's non-blocking variant of rsu_send_msg(). like, she tries, and if it's a no she's out. no waiting, no queuing, no drama β¨
πΈ SYNOPSIS πΈ
int rsu_try_send_msg (struct stratix10_rsu_priv *priv , enum
stratix10_svc_command_code command , unsigned long arg , rsu_callback
callback );
that's the whole vibe. four things in, one int out. slay π
π¦ ARGUMENTS π¦
privβ pointer to the rsu private data. it's giving "the personal stash" π«Άcommandβ the RSU status or update command. so like,enum stratix10_svc_command_codeβ are we checking in, or are we updating? πargβ the request argument, aka the bitstream address or notify status. depends on the mood of the call πcallbackβ function pointer for the callback (status or update). she'll call you back, no cap π
π₯ DESCRIPTION π₯
literally the same as rsu_send_msg but β and this is the entire personality β she returns -EBUSY immediately when another RSU operation is already in flight, instead of waiting for the lock. not her waiting in the queue era anymore π
ngl this is the iconique part: no blocking, no sitting around. if the RSU is busy she just says so right away. polite? maybe not. efficient? absolutely. π
and the return values, bestie:
- returns
0on success β we ate π -EBUSYif the RSU is busy β she's booked, try later π- or another negative
errnoon failure β the generic "it went wrong" experience π
β SEE ALSO β
the kernel file, because obviously you gotta read the source:
./drivers/firmware/stratix10-rsu.c
and the whole friend group π«Ά:
rsu_device_info_set_from_packed(9)struct stratix10_rsu_priv(9)rsu_device_info_invalidate(9)rsu_status_callback(9)rsu_async_status_callback(9)rsu_command_callback(9)rsu_retry_callback(9)rsu_max_retry_callback(9)rsu_dcmf_version_callback(9)rsu_dcmf_status_callback(9)rsu_get_device_info_callback(9)rsu_async_get_spt_table_callback(9)__rsu_send_msg_locked(9)rsu_send_msg(9)soc64_async_callback(9)rsu_send_async_msg(9)
π that's the whole page, bestie. go forth and not block. iykyk.
β¨ mwah β¨ this lil page lives over in ./drivers/firmware (that's the source/version vibe π), dated October 2026, and yes the section is rsu_try_send_msg(9). k bye love u, drink water ππ¦πΈ
π¦ 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