__smb_break_...levII_oplock(9)
π
__smb_break_...levII_oplock(9) β like, the Kernel API Manual page, bestie β¨
okay so sit down, grab a strawberry π, because we're talking about the __smb_break_...levII_oplock(9)</p> page from the Kernel API Manual and honestly it's giving very niche-but-iconic. iykyk π
β¨ NAME β¨
__smb_break_all_levII_oplock β sends a level2 oplock break or a read lease break command, and the direction is server β client, no cap π«Ά
Like literally that's the whole assignment: server tells the client "hey bestie, your lock situation needs to change."
π¦ SYNOPSIS π¦
void __smb_break_all_levII_oplock (struct ksmbd_work *work , struct
ksmbd_file *fp , int is_trunc , bool send_interim , bool
send_oplock_break , bool sync_lease_break );
she takes six arguments and returns void, so no return value to obsess over π
π ARGUMENTS π
workβ the smb work. the main character of the function call, fr fr πfpβ theksmbdfile pointer. like, which file are we even talking about? this one πis_truncβ truncate on open. yep, that's the flag π©·send_interimβ send interim response to the client. a little "hang on bestie, we're working on it" message β¨send_oplock_breakβ send oplock break notification to the client. the actual β¨dramaβ¨ delivery π₯sync_lease_breakβ send the lease break notification synchronously. no shortcuts, we wait, periodt π
ngl all six of these areboolexcept the first three, so mind your types βstruct ksmbd_work *,struct ksmbd_file *,int, then threebools. copy the signature exactly, don't get creative π
π§ SEE ALSO π§
the whole friend group, in the source file Kernel file ./fs/smb/server/oplock.c β literally every one of them, no skipping π«Ά
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_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)
and that's the page!! πβ¨ she lives in ./fs/smb/server, and this icon was dated October 2026 β so like, mark your calendars bestie, and go read oplock.c if you want the full lore ππ
π¦ 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