af_alg_wait_for_wmem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” if MSG_DONTWAIT is 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 🌈

  • 0 when writable memory is available β€” slay, you're clear to write ✨
  • < 0 upon 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:


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