smb2_find_context_vals(9)
π NAME π
smb2_find_context_vals β bestie, this one hunts down a particular context info inside an open request πβ¨
So this page lives in the Kernel API Manual, and it's all about searching an smb2 file open (create) request buffer for one specific context name. It's giving "where's my specific little guy in this giant buffer" energy and honestly? iconic π
β¨ SYNOPSIS β¨
struct create_context * smb2_find_context_vals (void *open_req , const
char *tag , int tag_len );
π¦ ARGUMENTS π¦
open_reqβ the buffer that's holding your smb2 file open (create) request π that's the haystack, basicallytagβ the context name you're searching for, like the name tag at a party π·οΈtag_lenβ the length oftag, bestie, don't forget it, it's literally the size of the thing you're looking for π
πΈ RETURN πΈ
You get back a pointer to the requested context π«Ά β but heads up:
- it's
NULLif the context isn't found, or an error pointer if the name length is invalid π
So yeah, lowkey always check what came back before you go dereferencing it, okay? π
π SEE ALSO π
Kernel file ./fs/smb/server/oplock.c β and the whole friend group π«
alloc_opinfo(9)opinfo_write_to_read(9)opinfo_read_handle_to_read(9)opinfo_write_to_none(9)opinfo_read_to_none(9)lease_read_to_write(9)lease_none_upgrade(9)close_id_del_oplock(9)grant_write_oplock(9)grant_read_oplock(9)grant_none_oplock(9)same_client_has_lease(9)__smb2_oplock_break_noti(9)smb2_oplock_break_noti(9)__smb2_lease_break_noti(9)smb2_lease_break_noti(9)smb_grant_oplock(9)smb_break_all_write_oplock(9)__smb_break_all_levII_oplock(9)smb_break_all_oplock(9)smb2_map_lease_to_oplock(9)create_lease_buf(9)parse_lease_state(9)create_durable_rsp_buf(9)create_durable_v2_rsp_buf(9)create_mxac_rsp_buf(9)create_posix_rsp_buf(9)create_aapl_rsp_buf(9)lookup_lease_in_table(9)
ngl the whole oplock squad is here β go read them too, they're all linked for a reason π
okay that's the whole page, bestie, go forth and find those context vals ππ
signing off from ./fs/smb/server, dated October 2026, version smb2_find_context_vals(9) β slay, bye! πβ¨
π¦ 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