ksmbd_extract_shortname(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 ksmbd_extract_shortname(9) β€” hey bestie, it's the Kernel API Manual 🌈

Okay so bestie, this is ksmbd_extract_shortname(9) from the Kernel API Manual, and it's literally about pulling a shortname out of a long filename. Lowkey iconic. πŸ’…


✨ NAME ✨

ksmbd_extract_shortname β€” get shortname from long filename πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksmbd_extract_shortname (struct ksmbd_conn *conn , const char
*longname , char *shortname );

🌸 ARGUMENTS 🌸

  • conn β€” connection instance, like the whole vibe of the connection πŸ’«
  • longname β€” source long filename, the main character filename πŸ‘‘
  • shortname β€” destination short filename, where the short version goes πŸŽ€

πŸ’– RETURN πŸ’–

So it returns the shortname length, or 0 when the source long name is '.' or '..'. Periodt.

TODO: Though this function conforms the restriction of 8.3 Filename spec, but the result is different with Windows 7's one. need to check. 😭

🌟 SEE ALSO 🌟

Kernel file ./fs/smb/server/smb_common.c and also these besties:


And that's the whole page, bestie! 🫢 This cutie comes from ./fs/smb/server, dated October 2026, and it's still ksmbd_extract_shortname(9) at the end of the day. Slay. πŸ’…βœ¨

πŸ“¦ where this page comes from