nfsd_update_cmtime_attr(9)
π nfsd_update_cmtime_attr π
okay bestie, welcome to the Kernel API Manual β¨ β this is the page for nfsd_update_cmtime_attr, and yes it's a nine-paragraph man page about one function, but honestly? it's lowkey iconic. let's get into it π«Ά
πΈ NAME πΈ
nfsd_update_cmtime_attr β update a file's delegated ctime/mtime, and optionally other attributes (ie ATTR_ATIME). periodt. π«
β¨ SYNOPSIS β¨
void nfsd_update_cmtime_attr (struct file *f , unsigned int flags );
like, that's the whole signature. short king energy π no return value, it's a void, it just does things. π
π ARGUMENTS π
fβ pointer to an opened file ποΈ that's your main character right thereflagsβ any additional flags that should be updated π like, the extra little attrs you wanna touch too
π¦ DESCRIPTION π¦
okay so here's the lore π: given that upon opening a file, delegated attributes were issued, this function updates f's attributes to the current times. β°β¨ that's it, that's the vibe β the attrs get refreshed to now. ngl it's a small function but it's doing its thing π
π₯ SEE ALSO π₯
the whole friend group π«Ά all of these live in the kernel file ./fs/nfsd/nfs4state.c:
nfs4_delegation_exists(9)hash_delegation_locked(9)revoke_delegation(9)nfs4_replay_free_cache(9)nfsd4_revoke_states(9)nfsd4_revoke_export_states(9)nfsd_slot_shrinker_count(9)nfsd_slot_shrinker_scan(9)nfsd4_put_client(9)nfsd_wait_for_delegreturn(9)nfsd_breaker_owns_lease(9)nfsd4_deleg_lm_open_conflict(9)nfsd4_process_open2(9)nfsd4_force_end_grace(9)nfs4_preprocess_stateid_op(9)nfs4_preprocess_seqid_op(9)nfsd4_release_lockowner(9)nfsd4_vet_deleg_time(9)nfsd4_deleg_getattr_conflict(9)nfsd_get_dir_deleg(9)
likeβ¦ that's a squad π go read them, iykyk π
okay that's the whole page bestie, thank you for coming to my ted talk π§ this one shipped from ./fs/nfsd back in October 2026, mwah π bye bye ππ
π¦ 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