getrandom_syscall(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

getrandom_syscall β€” Invoke the getrandom() syscall.

hii bestie πŸ’– welcome to the getrandom_syscall(9) page from the Kernel API Manual. this function’s whole thing is literally invoking the getrandom() syscall. no cap, that’s the vibe. πŸŽ€


🌸 SYNOPSIS 🌸

       ssize_t getrandom_syscall (void *buffer , size_t len , unsigned int
       flags );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • buffer β€” destination buffer to fill with random bytes. πŸ’§
  • len β€” size of buffer in bytes. πŸ“
  • flags β€” zero or more GRND_* flags. 🚩

πŸ”₯ RETURN πŸ”₯

the return value is the number of random bytes written to buffer, or a negative value indicating an error. that’s it, that’s the whole return vibe. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./arch/x86/include/asm/vdso/getrandom.h πŸ‘€

okay bestie, that’s the page πŸ’… source/version: ./arch/x86/include/asm/vdso; date: October 2026; title: getrandom_syscall(9). bye and slay your random-byte era πŸŽ€βœ¨

πŸ“¦ where this page comes from