Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\lru_cache.c Create Date:2022-07-28 07:16:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lc_free_by_index

Proto:static void lc_free_by_index(struct lru_cache *lc, unsigned i)

Type:void

Parameter:

TypeParameterName
struct lru_cache *lc
unsignedi
162  p = lc_element[i]
163  WARN_ON(!p)
164  If p Then
165  p -= offset of struct lc_element member in the tracked object
166  kmem_cache_free( the pre-created kmem cache to allocate the objects from , p)
Caller
NameDescribe
lc_destroylc_destroy - frees memory allocated by lc_create()*@lc: the lru cache to destroy