kpp_request_set_callback(9)
π kpp_request_set_callback(9) β like, the Kernel API Manual one, bestie
okay so picture this: you're deep in kernel land, you've got a kpp_request just sitting there, and you need to know when your async op is done done. That's this function. It sets an asynchronous callback, and honestly? It's giving main character energy for the whole request lifecycle β¨
β¨ SYNOPSIS β¨
void kpp_request_set_callback (struct kpp_request *req , u32 flgs ,
crypto_completion_t cmpl , void *data );
look at that signature. four args. void return. no notes. π
πΈ ARGUMENTS πΈ
reqβ the request that the callback will be set for. this is your request, bestie, the one you're emotionally attached to now π«Άflgsβ these specify, for instance, if the operation may backlog. like, it might have to wait its turn in the queue. respect the queue πcmplβ the callback which will be called. typecrypto_completion_t. this is the whole point of the function, lowkey the star of the show πdataβ private data used by the caller. your little secret stash. nobody else's business π
π DESCRIPTION π
So here's the vibe: the callback will be called when an asynchronous operation on a given request is finished. that's it. that's the sentence. and it's iconic.
like, you hand over your req, your flgs, your cmpl and your data, and the kernel goes "noted, bestie" and then eventually β when the async op wraps up β your callback fires. no cap. periodt. π₯
fr fr, this is the async notification hookup for Key-agreement Protocol Primitives. don't sleep on it.
π¦ SEE ALSO π¦
- Kernel file
./include/crypto/kpp.h struct kpp_request(9)struct crypto_kpp(9)struct kpp_alg(9)Generic Key-agreement Protocol Primitives API(9)crypto_alloc_kpp(9)crypto_free_kpp(9)kpp_request_alloc(9)kpp_request_free(9)kpp_request_set_input(9)kpp_request_set_output(9)struct kpp_secret(9)crypto_kpp_set_secret(9)crypto_kpp_generate_public_key(9)crypto_kpp_compute_shared_secret(9)crypto_kpp_maxsize(9)
go read them all, i'll wait. actually no i won't, i'll be reading them too. πβ
and that's the whole page, bestie!! it lives under ./include/crypto in the Kernel API Manual, and it's dated October 2026 β so yeah, future-coded of it. 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