nfsd_file_lru_cb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfsd_file_lru_cb(9) β€” or, the kernel API manual's main character ✨

okay bestie, welcome to the Kernel API Manual entry for nfsd_file_lru_cb(9) β€” yes that's the whole name, yes it's a mouthful, we love her anyway 🫢


🌸 NAME 🌸

nfsd_file_lru_cb β€” Examine an entry on the LRU list πŸ‘€


⭐ SYNOPSIS ⭐

enum lru_status nfsd_file_lru_cb (struct list_head *item , struct
       struct list_lru_one *lru , void *arg );

no cap, that's the whole signature β€” she takes three things and returns an enum lru_status. iconic behavior honestly πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • item β€” the LRU entry we're examining, like the little guy under the microscope πŸ”
  • lru β€” the LRU that's calling the shots, the controlling one πŸ‘‘
  • arg β€” the dispose list, just vibing in the third slot πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole point of this function is checking out one single entry on the LRU list. that's it, that's the gig ✨

and here's the return value tea, bestie β€” memorize these, they matter:

  • LRU_REMOVED β€” item was removed from the LRU, she's outta there πŸ’€
  • LRU_ROTATE β€” item is to be moved to the LRU tail, off to the back of the line 🌈
  • LRU_SKIP β€” item cannot be evicted, hard pass, not today πŸ™ˆ
fr fr, those three statuses are the entire contract β€” no extra lore, that's just what it says πŸ’–

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./fs/nfsd/filecache.c β€” go read the source, iykyk πŸ“–

and the whole friend group of related pages, because she does not exist in a vacuum:

not me listing all twenty of them β€” every single one gets a shoutout, that's the rule πŸ’…βœ¨


and that's the page, bestie πŸŽ€ this lil manual came from ./fs/nfsd and it's dated October 2026, so like… mark your calendar πŸ‘‘. mwah, go read the source, slay, periodt πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from