__rsu_send_msg_locked(9)
π« __rsu_send_msg_locked β NAME π«
okay so bestie, gather round: this is the Kernel API Manual page for __rsu_send_msg_locked (yes, that's a (9) β it's a kernel-internal function, very main character of it), and it literally does what it says on the tin: it sends a message to the Intel service layer. π
Intel service layer messaging, but make it locked. iykyk.
β¨ SYNOPSIS β¨
int __rsu_send_msg_locked (struct stratix10_rsu_priv *priv , enum
stratix10_svc_command_code command , unsigned long arg , rsu_callback
callback );
like, four args, one int return, no notes. slay. π
πΈ ARGUMENTS πΈ
privβ pointer to the rsu private data. your little bag of rsu state, hand it over π«Άcommandβ the RSU status or update command. two vibes: checking the status, or doing the update.argβ the request argument, which is either the bitstream address or the notify status. depends which command you're on, no cap.callbackβ function pointer for the callback, and it's either a status callback or an update callback. yes it's a function pointer and yes that's iconic.
π₯ DESCRIPTION π₯
so the actual job: perform the actual SMC transaction. that's the whole point of the function, that's the move. π§
β οΈ the caller must holdpriv->lock. like, NON-NEGOTIABLE. the_lockedin the name is not a cute decoration, bestie, it's a whole warning. don't come in here without the lock. π
and the return values, keep these in your notes forever:
0on success π- a negative
errnoon failure π
that's it. that's the whole function. short and perfect, it's giving efficient.
π¦ SEE ALSO π¦
the source itself, so you can go read the whole thing:
Kernel file ./drivers/firmware/stratix10-rsu.c
and the whole little friend group of related pages, all of them:
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(9)rsu_try_send_msg(9)soc64_async_callback(9)rsu_send_async_msg(9)
and that's the page!! sign-off time: this one lives over in ./drivers/firmware, in the October 2026 edition of the docs. go forth, hold your lock, and slay πβ¨
π¦ 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