parse_lease_state(9)
π parse_lease_state(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this is page parse_lease_state(9) and it's literally about one job: digging a lease context out of a file open request. That's it. That's the whole vibe. π
πΈ NAME πΈ
parse_lease_state β parse lease context contained in file open request
like... the name is the plot, no cap π
β¨ SYNOPSIS β¨
struct lease_ctx_info * parse_lease_state (void *open_req );
yes she's a function that returns a pointer to a struct lease_ctx_info *, and yes she takes exactly one thing. iconic signature honestly π
π¦ ARGUMENTS π¦
open_reqβ the buffer containing thesmb2file open(create) request π₯ this is the raw request blob you're handing over, and it's avoid *so... bestie, be normal about what you pass in π«Ά
π RETURN π
on success you get the newly allocated lease context object β yay, memory, congrats, that thing is yours now π
otherwise? NULL. that's the whole story. no object, no party π
β SEE ALSO β
the whole friend group, fr fr β all of these live in the kernel file ./fs/smb/server/oplock.c and they're all (9) pages, so go say hi π
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_levII_oplock(9)smb_break_all_oplock(9)smb2_map_lease_to_oplock(9)create_lease_buf(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)
that's twenty-nine (29) whole pages, count 'em π
quick reminder bestie: the return value being NULL on failure is not a drill β treat it like a vibe check and handle it π
okay that's the page!! mwah π this lil' entry ships from ./fs/smb/server and it's dated October 2026, so like... future-core of you to be reading it. π§ββοΈ bye bestie, go parse some leases π¦
π¦ 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