gb_operation_sync_timeout(9)
π gb_operation_sync_timeout(9) π
okay so bestie, you're in the Kernel API Manual (section 9, keep up β¨) and we're about to talk about gb_operation_sync_timeout β literally the "just send it and wait" of Greybus. no cap. π¦
β¨ NAME β¨
gb_operation_sync_timeout β implement a "simple" synchronous operation π
πΈ SYNOPSIS πΈ
int gb_operation_sync_timeout (struct gb_connection *connection , int
type , void *request , int request_size , void *response , int
response_size , unsigned int timeout );
π§ ARGUMENTS π§
connectionβ the Greybus connection we're sending this whole thing to, like it's the group chat you're dropping the message in πtypeβ the type of operation you're sending, iykykrequestβ pointer to a memory buffer; we copy the request from here π«Άrequest_sizeβ size ofrequest, obviouslyresponseβ pointer to a memory buffer; we copy the response to hereresponse_sizeβ the size ofresponse. periodt.timeoutβ operation timeout in milliseconds β³
π₯ DESCRIPTION π₯
This function implements a simple synchronous Greybus operation. like, simple simple. it sends the provided operation request and then waits (yes, sleeps π΄) until the corresponding operation response message has been successfully received, or until an error occurs. whichever comes first, bestie.
request and response are buffers holding the request and response data respectively, and if they are not NULL, their size must be specified in request_size and response_size. no guessing, just say the number π
If a response payload is to come back, and response is not NULL, then response_size number of bytes will be copied into response β but only if the operation is successful β¨
If there is an error, the response buffer is left alone. completely untouched. hands off. π
fr fr, that last bit matters β on error your buffer does not get written to, so don't go reading it like it's fresh data π
β SEE ALSO β
Kernel file ./drivers/greybus/operation.c, gb_operation_request_send(9), gb_operation_unidirectional_timeout(9) π
and that's the whole vibe check, bestie π this page came to you from ./drivers/greybus, dated October 2026, and the title is gb_operation_sync_timeout(9) β slay, go write some kernel code now π
π
π¦ 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