smb_grant_oplock(9)
π
smb_grant_oplock(9) π
okay so bestie, this page is from the Kernel API Manual and it's giving kernel internals but make it cute. no cap, we're keeping every detail, and lowkey obsessed with how tidy it is. slay, let's get into it. π«Ά
πΈ NAME πΈ
smb_grant_oplock β handle oplock/lease request on file open β¨
π SYNOPSIS π
int smb_grant_oplock (struct ksmbd_work *work , int req_op_level , u64
pid , struct ksmbd_file *fp , __u16 tid , struct lease_ctx_info *lctx ,
int share_ret , bool replay );
π ARGUMENTS π
the whole lineup, bestie:
workβ smb work.req_op_levelβ oplock level.pidβ id of open file.fpβ ksmbd file pointer.tidβ Tree id of connection.lctxβ lease context information on file open.share_retβ share mode.replayβ whether this is a replayed CREATE request.
π₯ RETURN π₯
0 on success, otherwise error π. periodt.
π¦ SEE ALSO π¦
Kernel file ./fs/smb/server/oplock.c β the whole group chat is here, iykyk:
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_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)smb2_find_context_vals(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)
mwah π β sign-off time: source/version is ./fs/smb/server, date is October 2026, and the page is still smb_grant_oplock(9). byeee π«Άβ¨
π¦ 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