Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:17:13
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Remove one

Proto:void unregister_shrinker(struct shrinker *shrinker)

Type:void

Parameter:

TypeParameterName
struct shrinker *shrinker
413  If Not bjs pending delete, per node Then Return
415  If flags & SHRINKER_MEMCG_AWARE Then unregister_memcg_shrinker(shrinker)
417  lock for writing
418  deletes entry from list
419  lease a write lock
420  kfree - free previously allocated memory*@objp: pointer returned by kmalloc.* If @objp is NULL, no operation is performed.* Don't free memory not originally allocated by kmalloc()* or you will run into trouble.
421  bjs pending delete, per node = NULL
Caller
NameDescribe
hugepage_init
zs_unregister_shrinker
mb_cache_destroymb_cache_destroy - destroy cache*@cache: the cache to destroy* Free all entries in cache and cache itself. Caller must make sure nobody* (except shrinker) can reach @cache when calling this.