Documented in 1 files:
Defined in 2 files as a function:
- include/linux/list.h, line 1092 (as a function)
- tools/include/linux/list.h, line 671 (as a function)
Referenced in 6 files:
- drivers/md/dm-snap.c, line 812
- drivers/net/wireguard/selftest/allowedips.c, line 177
- fs/libfs.c, line 215
- kernel/bpf/cgroup.c, line 784
- lib/tests/list-test.c, line 936
- net/batman-adv/fragmentation.c, line 194
Smatch caller information:
net/batman-adv/fragmentation.c batadv_frag_insert_packet() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &chain->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct batadv_frag_table_entry)->lock |
drivers/net/wireguard/allowedips.c horrible_insert_ordered() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | &mutex |
drivers/md/dm-snap.c dm_insert_exception() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &s->lock | ||
| HALF_LOCKED2 | lock.complete_slot | ||
| HALF_LOCKED2 | lock.pending_slot |
kernel/bpf/cgroup.c insert_pl_to_hlist() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 1 | next | 1-ptr_max |
| NOCHECK_CALL | |||
| LOCK2 | global &cgroup_mutex |
lib/tests/list-test.c hlist_test_add() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 2675278042282999808 |
| PARAM_VALUE | 1 | next | 114546257186250752 |
| PARAM_VALUE | 1 | next->next | 0 |
| PARAM_VALUE | 1 | next->pprev | 2864924783957278720 |
| NOCHECK_CALL |
fs/libfs.c dcache_readdir() -> hlist_add_before()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | n | 4096-ptr_max |
| PARAM_VALUE | 0 | n->next | 0 |
| PARAM_VALUE | 0 | n->pprev | 0 |
| PARAM_VALUE | 1 | next | 4096-ptr_max |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &dir_fp->readdir_lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem | ||
| TYPE_LOCK | (struct lockref)->lock |