locks_start_grace(9)
๐ locks_start_grace(9) โ Kernel API Manual, bestie edition โจ
okay so real talk, this one lives in the Kernel API Manual and it's literally the "start the grace period" button. that's the whole vibe. let's get into it ๐
๐ธ NAME
locks_start_grace โ and ngl the original page just leaves the description blank after the dash, so likeโฆ the name is the name. it starts a grace period. iconic of it, honestly. ๐ซถ
โจ SYNOPSIS
void locks_start_grace (struct net *net , struct lock_manager *lm );
that's it, that's the whole signature. no return value, it's giving void and unbothered. ๐
๐ฆ ARGUMENTS
netโ the net namespace that this lock manager belongs to. like, whose world are we in? that one. ๐lmโ who this grace period is for. the lock manager in question. it's giving main character energy, because the grace period is literally about them. ๐
๐ DESCRIPTION
okay so first things first, what even is a grace period? it's a period during which locks should not be given out. that's the whole definition, no cap. ๐ซ๐
currently, grace periods are only enforced by the two lock managers โ that's lockd and nfsd โ and they do it by using the locks_in_grace function to check when they're in a grace period. so locks_in_grace is the vibe check function, and it's doing the actual enforcing. ๐
and this function right here? locks_start_grace? it's called to start a grace period. that's the whole job. short, sweet, slays. periodt. ๐ฅ
๐ง SEE ALSO
- Kernel file
./fs/nfs_common/grace.cโ the source, go read it bestie ๐ locks_end_grace(9)โ the other half of the story, the closing chapter ๐ฌlocks_in_grace(9)โ the checker, the vibe check, the "are we in a grace period rn" oracle ๐ฎ
lowkey a tiny function with a big responsibility. don't sleep on it. ๐
โฟ and that's the page! brought to you by ./fs/nfs_common, October 2026, and the one and only locks_start_grace(9) โ mwah, go start some grace periods responsibly ๐โจ
๐ฆ 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