init_smb1_rsp_hdr(9)
π init_smb1_rsp_hdr(9) π
okay so this is a page from the Kernel API Manual (yes, the kernel girlies have their own manual, we been knew) and today's main character is init_smb1_rsp_hdr β it's the function that gets an SMB negotiate response header all set up and ready to slay. π
β¨ NAME β¨
init_smb1_rsp_hdr β literally just initializes the smb negotiate response header. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
int init_smb1_rsp_hdr (struct ksmbd_work *work );
like, she takes one thing and she returns an int. simple. iconic. no notes. π
π ARGUMENTS π
workβ the smb work struct that's carrying your smb request π«Ά this is the smb work containing the smb request, so yeah, it's kind of the whole point. she needs it. don't forget it.
β RETURN β
0 on success πβ¨ β otherwise you get -EINVAL, which is the kernel's way of saying "bestie, no" π
π₯ SEE ALSO π₯
go read these next, fr fr β they're all in the kernel file ./fs/smb/server/smb_common.c:
ksmbd_verify_smb_message(9)ksmbd_smb_request(9)get_smb1_cmd_val(9)smb1_check_user_session(9)smb1_allocate_rsp_buf(9)set_smb1_rsp_status(9)ksmbd_extract_shortname(9)
all of them ate, ngl. π
lowkey reminder: the source lives at ./fs/smb/server and this page is dated October 2026 β putting that here so you can cite me later, iykyk π§π
mwah, study hard and hydrate β your fave kernel bestie, signing off ππβ¨
π¦ 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