Function report |
Source Code:kernel\bpf\hashtab.c |
Create Date:2022-07-28 13:10:17 |
| Last Modify:2022-05-23 09:15:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:htab_lru_map_delete_elem
Proto:static int htab_lru_map_delete_elem(struct bpf_map *map, void *key)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | map | |
| void * | key |
| 1149 | WARN_ON_ONCE(!_read_lock_held() - might we be in RCU read-side critical section?* If CONFIG_DEBUG_LOCK_ALLOC is selected, returns nonzero iff in an RCU* read-side critical section) |
| 1153 | hash = htab_map_hash(key, key_size, hashrnd) |
| 1154 | b = __select_bucket(htab, hash) |
| 1157 | raw_spin_lock_irqsave( & lock, flags) |
| 1161 | If l Then |
| 1163 | ret = 0 |
| 1166 | raw_spin_unlock_irqrestore( & lock, flags) |
| 1167 | If l Then bpf_lru_push_free( & lru, & lru_node) |
| 1169 | Return ret |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |