__smb_break_...levII_oplock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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 β€” the ksmbd file 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 are bool except the first three, so mind your types β€” struct ksmbd_work *, struct ksmbd_file *, int, then three bools. 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 🫢


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