ksmbd_update_fstate(9)
π ksmbd_update_fstate(9) β Kernel API Manual π
okay so bestie, welcome to the ksmbd_update_fstate(9) page β it's giving kernel API manual realness, and honestly it's a whole little moment. π
β¨ NAME β¨
ksmbd_update_fstate β update an fp state under the file-table lock π«Ά
π SYNOPSIS π
the whole vibe is literally this:
int ksmbd_update_fstate (struct ksmbd_file_table *ft , struct ksmbd_file
*fp , unsigned int state );
π ARGUMENTS π
ftβ file table that publishesfp's volatile id π¦fpβ file pointer to update β¨stateβ new state πΈ
π₯ RETURN π₯
0on success. periodt. π- The
FP_NEW -> FP_INITEDtransition is special:-ENOENTif teardown already unpublishedfpby advancing the state or clearing the volatile id. π - Other state updates preserve the historical fire-and-forget behavior. π
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./fs/smb/server/vfs_cache.c ksmbd_close_disconnected_durable_delete_on_close(9)ksmbd_vfs_compare_durable_owner(9)
okay bye bestie β this one's signed off from the ./fs/smb/server source/version, dated October 2026, and it's literally called ksmbd_update_fstate(9) πβ¨
π¦ 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