gb_operation_request_send(9)
π gb_operation_request_send(9) β from the Kernel API Manual, bestie
okay so picture this: it's a Kernel API Manual page, and today's main character is gb_operation_request_send(9). she sends operation request messages. that's her whole thing. let's get into it π
β¨ NAME β¨
gb_operation_request_send β send an operation request message π
like, that's literally the job. you got an operation? you wanna request? you wanna send? boom. done.
πΈ SYNOPSIS πΈ
int gb_operation_request_send (struct gb_operation *operation ,
gb_operation_callback callback , unsigned int timeout , gfp_t gfp );
she takes four things and returns an int. no cap. π«Ά
π¦ ARGUMENTS π¦
operationβ the operation to initiate. this is the girl. the operation in question. the one you're kicking off β¨callbackβ the operation completion callback. she gets called later when stuff finishes, so keep her number πtimeoutβ operation timeout in milliseconds, or zero for no timeout. so like, zero means girl has all the time in the world β³gfpβ the memory flags to use for any allocations. the lil' budget for whatever memory gets grabbed along the way πΈ
π DESCRIPTION π
so here's the vibe: the caller has filled in any payload, so the request message is literally ready to go. like bags packed, shoes on, standing at the door π§
the callback function you supplied will be called when one of these happens:
- the response message has arrived π¬
- a unidirectional request has been sent π€
- the operation is cancelled π
...any of those means the operation is complete, bestie. that's the signal. that's the text that says "we're so back" (or "it's over", depending).
and good news: the callback function can fetch the result of the operation using gb_operation_result if desired. she has receipts π₯
β RETURN β
0β the request was successfully queued in the host-driver queues. slay. ate. no notes π β¨- a negative
errnoβ it was not that. something went sideways, read the errno π
π SEE ALSO π
- Kernel file
./drivers/greybus/operation.c gb_operation_sync_timeout(9)gb_operation_unidirectional_timeout(9)
go read those too, iykyk π
lowkey reminder: the callback is where the actual "did it work" energy lives β grab the result with gb_operation_result and don't leave us hanging π₯Ί
and that's the page, bestie!! delightful. it lives over in ./drivers/greybus, dated October 2026, and yes the footer says gb_operation_request_send(9) again because she loves an entrance and an exit ππβ
π¦ 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