name_is_dot_dotdot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… name_is_dot_dotdot(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the name_is_dot_dotdot(9) page 🫢 this is from the Kernel API Manual and it's honestly a tiny little icon, no cap.


🌸 NAME 🌸

name_is_dot_dotdot β€” returns true only if @name is "." or ".." πŸ’–

like… that's it. that's the whole vibe check. it looks at a name and goes "is this the current directory or the parent directory, yes or no" and nothing else. periodt.


✨ SYNOPSIS ✨

bool name_is_dot_dotdot (const char *name , size_t len );

it gives you back a bool, takes a const char * and a size_t, and it's literally not that deep πŸ’«


πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the file name you want to check πŸ‘€ that's the thing getting the vibe check
  • len β€” length of the file name, in bytes πŸ“ (bytes, bestie, not vibes)

πŸ¦‹ SEE ALSO πŸ¦‹

so there's a whole friend group listed here and we are NOT leaving anyone out, everyone's invited to the function πŸ’… the kernel file is ./include/linux and fs.h, and the squad is:

ngl if you're specifically hunting for the opposite energy, name_contains_dotdot(9) is right there in the list πŸ‘‘ it's giving "sibling energy" fr fr

and that's the whole page, bestie!! πŸŒˆπŸŽ€ this one lives in ./include/linux, dated October 2026, and it's name_is_dot_dotdot(9) signing off πŸ’– mwah, go check ur dotdotdot, ily 🫢✨

πŸ“¦ where this page comes from