list_lru_del_obj(9)
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:
folio_memcg_list_lru_alloc(9)list_lru_lock(9)list_lru_unlock(9)list_lru_add(9)list_lru_add_obj(9)list_lru_del(9)list_lru_count_one(9)list_lru_walk_one(9)list_lru_walk_one_irq(9)
k bye bestie π«Ά source/version: ./include/linux Β· date: October 2026 Β· page: list_lru_del_obj(9) β mwah π
π¦ 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