函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\bpf_lru_list.c Create Date:2022-07-27 14:29:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_common_lru_push_free

函数原型:static void bpf_common_lru_push_free(struct bpf_lru *lru, struct bpf_lru_node *node)

返回类型:void

参数:

类型参数名称
struct bpf_lru *lru
struct bpf_lru_node *node
507  如果WARN_ON_ONCE(type == BPF_LRU_LIST_T_FREE)或WARN_ON_ONCE(type == BPF_LRU_LOCAL_LIST_T_FREE)则返回
511  如果type恒等于BPF_LRU_LOCAL_LIST_T_PENDING
514  loc_l等于per_cpu_ptr(local_list, cpu)
516  raw_spin_lock_irqsave( & lock, flags)
520  转到:check_lru_list
523  type等于BPF_LRU_LOCAL_LIST_T_FREE
524  ref等于0
525  链表项移动到头部
527  raw_spin_unlock_irqrestore( & lock, flags)
528  返回
531  check_lru_list :
532  bpf_lru_list_push_free( & lru_list, node)
调用者
名称描述
bpf_lru_push_free