Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_common_lru_push_free

Proto:static void bpf_common_lru_push_free(struct bpf_lru *lru, struct bpf_lru_node *node)

Type:void

Parameter:

TypeParameterName
struct bpf_lru *lru
struct bpf_lru_node *node
507  If WARN_ON_ONCE(type == BPF_LRU_LIST_T_FREE) || WARN_ON_ONCE(type == BPF_LRU_LOCAL_LIST_T_FREE) Then Return
511  If type == BPF_LRU_LOCAL_LIST_T_PENDING Then
514  loc_l = per_cpu_ptr(local_list, cpu)
516  raw_spin_lock_irqsave( & lock, flags)
520  Go to check_lru_list
523  type = BPF_LRU_LOCAL_LIST_T_FREE
524  ref = 0
525  list_move - delete from one list and add as another's head*@list: the entry to move*@head: the head that will precede our entry
527  raw_spin_unlock_irqrestore( & lock, flags)
528  Return
531  check_lru_list :
532  bpf_lru_list_push_free( & lru_list, node)
Caller
NameDescribe
bpf_lru_push_free