af_alg_wait_for_wmem(9)
β¨ af_alg_wait_for_wmem β wait for availability of writable memory β¨
okay so bestie, this is a page from the Kernel API Manual (section 9, kernel devs only, iykyk π
) and it's literally the "hey, is there room to write yet??" function. no cap, that's the whole vibe.
πΈ NAME πΈ
af_alg_wait_for_wmem β wait for availability of writable memory
like, you're hanging out waiting for the write side of things to have space. that's her. that's the whole job. π«Ά
π SYNOPSIS π
int af_alg_wait_for_wmem (struct sock *sk , unsigned int flags );
that's it, that's the whole signature, she's tidy π
π¦ ARGUMENTS π¦
skβ the socket of the connection to user space. yes that socket, the one doing the talking to userspace πflagsβ ifMSG_DONTWAITis set, then only report if the function would sleep. like, "don't actually block me, just tell me if you would have blocked" β a vibe check, not a nap π΄
π RETURN π
0when writable memory is available β slay, you're clear to write β¨< 0upon error β not slay, something went wrong π
β SEE ALSO β
all the siblings in the kernel file ./crypto/af_alg.c, and honestly the whole friend group:
af_alg_alloc_tsgl(9)af_alg_count_tsgl(9)af_alg_pull_tsgl(9)af_alg_free_areq_sgls(9)af_alg_wmem_wakeup(9)af_alg_wait_for_data(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)
okay that's the whole page, go touch grass and then go wait for writable memory bestie πΈπ¦
sign-off szn: this lil icon comes from ./crypto and it's dated October 2026 β so mark your calendars, 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