smb2_oplock_break_noti(9)
π smb2_oplock_break_noti π
okay so bestie, welcome to the smb2_oplock_break_noti(9) page β it lives in the Kernel API Manual and it's literally the function that sends the smb2 exclusive/batch-to-level2 oplock break command, from the server over to the client. iykyk π¦
β¨ NAME β¨
smb2_oplock_break_noti β send the smb2 exclusive/batch to level2 oplock break command from the server to the client, no cap π
πΈ SYNOPSIS πΈ
int smb2_oplock_break_noti (struct oplock_info *opinfo , struct
ksmbd_inode *ci );
like, that's the whole signature, she's not complicated π
π ARGUMENTS π
opinfoβ the oplock info object. that's the main character right there πciβ the inode that owns the break target's oplock list, and it's pinned by the caller bestie, so don't go freeing it on her π
π«Ά RETURN π«Ά
0 on success β slay β¨ β otherwise you get an error π
π₯ SEE ALSO π₯
the kernel file ./fs/smb/server/oplock.c is where all the lore lives, and honestly the whole friend group shows up here:
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_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)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)
ngl the whole oplock family is a lot, but you got this bestie, one break notification at a time π
k so that's the page!! this one's from ./fs/smb/server, dated October 2026, and it's giving very much "kernel API manual" energy π mwah, go read the whole oplock.c bestie, ily ππ
π¦ 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