af_alg_wait_for_data(9)
β¨ af_alg_wait_for_data(9) β¨
okay bestie, so this is a page straight out of the Kernel API Manual β like, the kernel's own group chat, and this function is the one that's basically sitting there going "is there data yet?? is there?? π" until the TX side finally says something. it's giving patient bestie energy, no cap.
π NAME π
af_alg_wait_for_data β wait for availability of TX data π«Ά
like literally, it waits. that's the whole vibe.
πΈ SYNOPSIS πΈ
int af_alg_wait_for_data (struct sock *sk , unsigned flags , unsigned min );
π ARGUMENTS π
skβ the socket of the connection to user space. yeah, that one. the plug between the kernel and your program πflagsβ ifMSG_DONTWAITis set, then the function only reports whether it would sleep. so it's like "would i have to nap here?" and answers instead of actually napping. very considerate π¦minβ set to the minimum request size if partial requests are allowed. like a "gimme at least this much" threshold, iykyk β¨
β RETURN β
0when writable memory is available π slay< 0upon error π not slay
π SEE ALSO π
the kernel file is ./crypto/af_alg.c β that's where the whole friend group lives π and here's the rest of the squad, all (9) section icons:
af_alg_alloc_tsgl(9)af_alg_count_tsgl(9)af_alg_pull_tsgl(9)af_alg_free_areq_sgls(9)af_alg_wait_for_wmem(9)af_alg_wmem_wakeup(9)af_alg_data_wakeup(9)af_alg_sendmsg(9)af_alg_free_resources(9)af_alg_poll(9)af_alg_alloc_areq(9)af_alg_get_rsgl(9)
lowkey obsessed with how short this page is. main character energy, zero filler π β¨
mwah π that's a wrap! this lil gem came from the source tree at ./crypto, and the version stamp is dated October 2026, under the title af_alg_wait_for_data(9). go forth and wait for your TX data, bestie β you got this π«Άππ
π¦ 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