ssam_request_sync_free(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ssam_request_sync_free β€” the kernel API manual, bestie edition πŸ’–

okay so real talk, this one's in the kernel API manual (ssam_request_sync_free(9)) and it's honestly short but SO important, like the kind of function that's three lines of code and yet can absolutely ruin your whole week if you fumble it. let's get into it 🫢


✨ NAME ✨

ssam_request_sync_free β€” Free a synchronous request. literally that's the whole job. bestie's entire personality is "cleanup" πŸ’…


🌸 SYNOPSIS 🌸

void ssam_request_sync_free (struct ssam_request_sync *rqst );

no return value, no drama, just vibes and deallocation ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • rqst β€” The request to be freed. that's it, that's the argument. she's the one getting her memory handed back to the kernel πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

Free a synchronous request and its corresponding buffer, the one that got allocated with ssam_request_sync_alloc. so like, this function and ssam_request_sync_alloc are a matched set, they're giving soulmate energy, do not separate them 😭

🚨 Do not use for requests allocated on the stack or via any other function. like, seriously. stack-allocated? other-allocator-allocated? nope, not yours to free with this. this function is specifically for the ssam_request_sync_alloc girlies only.
πŸ’€ Warning: the caller must ensure that the request is not in use any more. i.e. the caller must ensure it has the only reference to the request and that the request is not currently pending.

so when exactly is it safe to call? the manual spells it out, and ngl this is the important bit, so listen up πŸ‘‘

  • the caller has either never submitted the request, or
  • the request submission has failed, or
  • the caller has waited until the submitted request has been completed via ssam_request_sync_wait

that's the whole checklist. three valid scenarios, no more, no less. if your request is still out there pending and you free it anyway? that's not main character energy, that's undefined-behavior energy πŸ™ˆ so pls, don't.


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/platform/surface/aggregator/controller.c

and now the iconic lineup, the whole friend group, no cap:

like, that's a whole contact list bestie, go read them all, i'll wait πŸ’–


and that's the page!! πŸŽ€ source is ./drivers/platform/surface/agg..., dated October 2026, filed under ssam_request_sync_free(9) β€” go free your requests responsibly, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from