is_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… is_empty(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” this page is literally all about is_empty(9), and we're gonna get you comfy with it. no cap. 🫢


✨ NAME ✨

is_empty β€” determine whether a buffer is empty (contains all 0xff). it's giving "is this thing empty or not" energy, and honestly? iconic. πŸ’–


🌸 SYNOPSIS 🌸

int is_empty (void *buf , int len );

πŸŽ€ ARGUMENTS πŸŽ€

  • buf β€” buffer to clean πŸ’…
  • len β€” length of buffer ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

this function returns 1 if the buffer is empty (contains all 0xff) β€” otherwise 0 is returned. periodt. πŸ’€

like, that's the whole vibe: empty buffer = 1, not empty buffer = 0. simple, clean, slay. 🌈


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/ubifs/recovery.c β€” and these related pages are all right here, bestie, every single one:


cute lil sign-off, bestie: this page comes from ./fs/ubifs, dated October 2026, and the footer title is is_empty(9) β€” make it fashion πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from