list_lru_del_obj(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the list_lru_del_obj(9) page from the Kernel API Manual πŸ’… this is the one where we delete an element from the lru list, and it’s lowkey iconic. let’s get into it.

✨ NAME ✨

list_lru_del_obj β€” delete an element from the lru list.


πŸŽ€ SYNOPSIS πŸŽ€

bool list_lru_del_obj (struct list_lru *lru , struct list_head *item );

πŸ’– ARGUMENTS πŸ’–

  • lru β€” the lru pointer. yes bestie, that one.
  • item β€” the item to be deleted. bye girl πŸ‘‹

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function is similar to list_lru_del, but with a little main-character twist: the NUMA node and the memcg of the sublist are determined by the item list_head. the way that works is very β€œtrust the list_head, it knows the vibe” ✨

and this assumption is valid for slab objects LRU such as dentries, inodes, etc. no cap, that’s the whole situation.


🌈 RETURN 🌈

true if the list was updated, false otherwise. that’s it, that’s the return, periodt πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/list_lru.h β€” go read it, iykyk 🫢 also peep these:


k bye bestie 🫢 source/version: ./include/linux Β· date: October 2026 Β· page: list_lru_del_obj(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from