ubifs_check_dir_empty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ubifs_check_dir_empty(9) πŸ’…

okay bestie, this page is ubifs_check_dir_empty(9) straight out of the Kernel API Manual, and it’s lowkey a tiny little vibe check for directories 🫢


🌸 NAME 🌸

ubifs_check_dir_empty β€” check if a directory is empty or not. no cap, that’s literally the whole job ✨


✨ SYNOPSIS ✨

int ubifs_check_dir_empty (struct inode *dir );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dir β€” the VFS inode object of the directory to check πŸ‘€

πŸ’… DESCRIPTION πŸ’…

This function checks if directory dir is empty. She returns zero if the directory is empty, -ENOTEMPTY if it is not, and other negative error codes in case of errors 😭

like, zero means β€œbestie it’s empty,” -ENOTEMPTY means β€œnope, there’s stuff in there,” and any other negative error codes mean something went sideways fr fr πŸ’€


🌈 SEE ALSO 🌈

Kernel file ./fs/ubifs/dir.c:


mwah πŸ’– this icon is from ./fs/ubifs, dated October 2026, and it’s giving very ubifs_check_dir_empty(9) main character energy β€” periodt πŸ‘‘

πŸ“¦ where this page comes from