ksmbd_extract_shortname(9)
π 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:
ksmbd_verify_smb_message(9)ksmbd_smb_request(9)get_smb1_cmd_val(9)init_smb1_rsp_hdr(9)smb1_check_user_session(9)smb1_allocate_rsp_buf(9)set_smb1_rsp_status(9)
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
- 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