ubifs_check_dir_empty(9)
π 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:
inherit_flags(9)ubifs_new_inode(9)lock_2_inodes(9)unlock_2_inodes(9)vfs_dent_type(9)lock_4_inodes(9)unlock_4_inodes(9)
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
- 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