Documented in 1 files:

Defined in 2 files as a function:

Referenced in 6 files:

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