name_is_dot_dotdot(9)
π 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 checklenβ 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:
enum positive_aop_returns(9)struct address_space(9)struct file_ra_state(9)struct file(9)i_uid_into_vfsuid(9)i_uid_needs_update(9)i_uid_update(9)i_gid_into_vfsgid(9)i_gid_needs_update(9)i_gid_update(9)inode_fsuid_set(9)inode_fsgid_set(9)fsuidgid_has_mapping(9)inode_set_ctime(9)file_write_started(9)file_write_not_started(9)struct renamedata(9)is_mgtime(9)iput_if_not_last(9)is_idmapped_mnt(9)file_start_write(9)file_end_write(9)kiocb_start_write(9)kiocb_end_write(9)name_contains_dotdot(9)inode_dio_begin(9)inode_dio_end(9)generic_ci_validate_strict_name(9)
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
- 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