stratix10_sv...are_response(9)
π stratix10_svc_async_prepare_response β from the Kernel API Manual, bestie
okay so picture this: you're deep in the kernel, specifically the Kernel API Manual, and you've stumbled onto stratix10_svc_async_prepare_response(9). Don't panic. She's actually so chill once you get to know her. Let's get into it β¨
πΈ NAME πΈ
stratix10_svc_async_prepare_response β literally here to prepare the response data for an asynchronous transaction. that's her whole job. that's the assignment. she ate π
β¨ SYNOPSIS β¨
int stratix10_svc_async_prepare_response (struct stratix10_svc_chan
*chan , struct stratix10_svc_async_handler *handle , struct
stratix10_svc_cb_data *data );
like yes she returns an int, and yes she takes three pointers. iconic behavior tbh π«Ά
π ARGUMENTS π
chanβ Pointer to the service channel structure. this is the vibe check of channels fr fr π¦handleβ Pointer to the asynchronous handler structure. the async handler in question, she's the main character here ngl πdataβ Pointer to the callback data structure. where the good stuff ends up living π
π DESCRIPTION π
okay so what does she actually do. This function prepares the response data for an asynchronous transaction. like, that's the whole plot π
She extracts the response data from the SMC response structure and stores it in the callback data structure. extraction!! very demure, very mindful π§
And bestie, she also logs the completion of the asynchronous transaction. so you get your little log line, your little closure, your little "it's done" moment. we love a function that journals πβ¨
β RETURN β
0on success β slay π-ENOENTif the command is invalid β not slay, but she's honest about it π
fr fr, if you see -ENOENT you passed her something invalid, no cap. go check that command π
π₯ SEE ALSO π₯
Kernel file ./drivers/firmware/stratix10-svc.c and honestly, the whole extended friend group:
SVC_NUM_DATA_IN_FIFO(9)struct stratix10_svc(9)struct stratix10_svc_sh_memory(9)struct stratix10_svc_data_mem(9)struct stratix10_svc_data(9)struct stratix10_svc_async_handler(9)struct stratix10_async_chan(9)struct stratix10_async_ctrl(9)struct stratix10_svc_chan(9)struct stratix10_svc_controller(9)svc_pa_to_va(9)svc_thread_cmd_data_claim(9)svc_thread_cmd_config_status(9)svc_thread_recv_status_ok(9)svc_normal_to_secure_thread(9)svc_normal_to_secure_shm_thread(9)svc_get_sh_memory(9)svc_create_memory_pool(9)svc_smccc_smc(9)svc_smccc_hvc(9)svc_smccc_1_2_full(9)get_invoke_func(9)stratix10_svc_request_channel_byname(9)stratix10_svc_add_async_client(9)stratix10_svc_remove_async_client(9)stratix10_svc_async_send(9)stratix10_svc_async_poll(9)stratix10_svc_async_done(9)stratix10_svc_async_init(9)stratix10_svc_async_exit(9)stratix10_svc_free_channel(9)stratix10_svc_send(9)stratix10_svc_done(9)stratix10_svc_allocate_memory(9)stratix10_svc_free_memory(9)
like, that's the whole group chat right there. mwah π
and that's the page!! brought to you by the good people over at ./drivers/firmware, dated October 2026 β catch you in the next one bestie, mwah ππβ¨
π¦ 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