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_destroy - frees memory allocated by lc_create()*@lc: the lru cache to destroy

Proto:void lc_destroy(struct lru_cache *lc)

Type:void

Parameter:

TypeParameterName
struct lru_cache *lc
177  If Not lc Then Return
179  When i < number of elements (indices) cycle lc_free_by_index(lc, i)
181  kfree(lc_element)
182  kfree( nr_elements there )
183  kfree(lc)