opinfo_write_to_read(9)
π
opinfo_write_to_read(9) β Kernel API Manual π¦
okay so bestie, welcome to opinfo_write_to_read(9) β a lil page from the Kernel API Manual, section 9, and honestly? it's giving "tiny function, big responsibilities" β¨
πΈ NAME πΈ
opinfo_write_to_read β convert a write oplock to read oplock. that's it. that's the whole job. glow-up for locks fr fr π
β¨ SYNOPSIS β¨
int opinfo_write_to_read (struct oplock_info *opinfo );
like, it takes one pointer and hands you back an int. simple queen behavior π
π ARGUMENTS π
opinfoβ current oplock info. yes bestie, current β this is the info you're working on right now, not some ex-oplock, we don't do that here π
π RETURN π
0on success π- otherwise
-EINVALπ (so like, not success, and specifically that error β no cap)
π¦ SEE ALSO π¦
okay this is the part where the page just like. introduces you to the entire friend group. buckle up π
alloc_opinfo(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)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 these all live in the kernel file ./fs/smb/server/oplock.c β that's the address bestie, write it down ποΈπ
π iykyk: this whole squad is deep SMB server oplock lore. if you already know, you already know. and if you don'tβ¦ bestie, see also the see also ππ«Ά
okay that's the page!! sourced from the legendary ./fs/smb/server directory, dated October 2026, and it's literally called opinfo_write_to_read(9) β slay, periodt, go convert that write oplock π
πβ¨
π¦ 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