fs_umode_to_ftype(9)
π fs_umode_to_ftype(9)
okay so bestie, welcome to the Kernel API Manual β this one's a lil kernel function called fs_umode_to_ftype, and honestly? it's giving translator energy. let's get into it π«Ά
β¨ NAME β¨
fs_umode_to_ftype β file mode to on-disk file type. yeah. that's the whole vibe. it takes a mode and hands you back the on-disk type. iconic behavior tbh π
πΈ SYNOPSIS πΈ
unsigned char fs_umode_to_ftype (umode_t mode );
that's it. one arg, one return, no drama. β¨
π ARGUMENTS π
modeβ the file mode you wanna convert, bestie. just hand it over and it'll do the thing π
π¦ DESCRIPTION π¦
so like, this function converts the file mode value to the on-disk file type (the FT_* situation). lowkey a glow-up for your umode_t, fr fr β¨
π CONTEXT π
Any context. no cap, any. call it wherever, whenever. it's not picky, she's flexible π§
π RETURN π
here's the menu of possible answers, and yes every single one is listed because we don't skip:
FT_UNKNOWNβ unknown type πFT_REG_FILEβ regular file πFT_DIRβ directory πFT_CHRDEVβ character device β¨FT_BLKDEVβ block device πFT_FIFOβ FIFO πΈFT_SOCKβ local-domain socket π¦FT_SYMLINKβ symbolic link π₯
eight options, all accounted for, periodt π
π SEE ALSO π
- Kernel file
./fs/fs_dirent.c fs_ftype_to_dtype(9)fs_umode_to_dtype(9)
like, go read those too, they're the friend group iykyk π«Ά
π reminder bestie: this page lives in ./fs and it's dated October 2026 β that's the source/version + date energy, mwah π
that's the whole page, you ate it, so proud of you, see you in the next man π§ββοΈβ¨π
π¦ 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