smb2_get_dos_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… smb2_get_dos_mode(9) β€” a little Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual, page smb2_get_dos_mode(9). buckle up, this one's short but it's a little icon ✨


🌸 NAME 🌸

smb2_get_dos_mode β€” get file mode in dos format from unix mode πŸ’–

like, it takes your unix-y mode and translates it into the DOS dialect. a whole little translator arc, we love to see it.


πŸ¦‹ SYNOPSIS πŸ¦‹

int smb2_get_dos_mode (struct kstat *stat , int attribute );

πŸŽ€ ARGUMENTS πŸŽ€

  • stat β€” a kstat that's holding your file mode. it's giving "everything you need is in here already" πŸ‘‘
  • attribute β€” the attribute flags. yes, plural vibes, it's a flags situation ngl

⭐ RETURN ⭐

it hands you back the converted dos mode. that's it, that's the whole return, slay πŸ’…


πŸ’œ SEE ALSO πŸ’œ

okay so this is the part where the manpage just. lists the entire friend group. iykyk. all of these live in the kernel file ./fs/smb/server/smb2pdu.c:


ngl the SEE ALSO section ate and left absolutely no crumbs. sixty whole entries. main character energy fr fr 🫢

mwah, that's the page πŸ’– it lives under ./fs/smb/server and it's dated October 2026 β€” so go forth, convert those modes, and remember: the vibe check is immaculate, the dos mode is converted, periodt. πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from