gb_operation_request_send(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’Œ 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 🌈

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