Documented in 2 files:
- arch/hexagon/include/asm/bitops.h, line 76
- include/asm-generic/bitops/instrumented-atomic.h, line 89
Defined in 1 files as a prototype:
Defined in 4 files as a macro:
- arch/arm/include/asm/bitops.h, line 196 (as a macro)
- arch/m68k/include/asm/bitops.h, line 307 (as a macro)
- arch/m68k/include/asm/bitops.h, line 309 (as a macro)
- arch/m68k/include/asm/bitops.h, line 311 (as a macro)
Defined in 11 files as a function:
- arch/alpha/include/asm/bitops.h, line 245 (as a function)
- arch/hexagon/include/asm/bitops.h, line 81 (as a function)
- arch/mips/include/asm/bitops.h, line 260 (as a function)
- arch/openrisc/include/asm/bitops/atomic.h, line 103 (as a function)
- arch/parisc/include/asm/bitops.h, line 90 (as a function)
- arch/sh/include/asm/bitops-cas.h, line 78 (as a function)
- arch/sh/include/asm/bitops-grb.h, line 140 (as a function)
- arch/sh/include/asm/bitops-llsc.h, line 119 (as a function)
- arch/sparc/include/asm/bitops_32.h, line 72 (as a function)
- arch/sparc/lib/bitops.S, line 58 (as a function)
- include/asm-generic/bitops/instrumented-atomic.h, line 96 (as a function)
Referenced in 11 files:
- arch/arm64/include/asm/sync_bitops.h, line 23
- arch/hexagon/include/asm/bitops.h
- arch/m68k/include/asm/bitops.h, line 319
- arch/sparc/lib/bitops.S
- drivers/block/drbd/drbd_req.c, line 936
- drivers/net/ethernet/qlogic/qed/qed_rdma.c, line 1015
- include/net/bluetooth/hci_core.h, line 858
- kernel/kcsan/kcsan_test.c
- kernel/kcsan/selftest.c
- lib/tests/bitops_kunit.c
- mm/kasan/kasan_test_c.c, line 1759
Smatch caller information:
net/bluetooth/mgmt.c set_external_config() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 12 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
mm/kasan/kasan_test_c.c kasan_bitops_test_and_modify() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 72 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| BUF_SIZE | 1 | addr | 9 |
| DATA_SOURCE | 0 | nr | $1 |
| DATA_SOURCE | 1 | addr | $2 |
| NOCHECK_CALL | |||
| UNITS | 0 | nr | unit_bit |
drivers/block/drbd/drbd_req.c remote_due_to_read_balancing() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nr | 20 |
| PARAM_VALUE | 1 | addr | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &resource->req_lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct drbd_resource)->req_lock |
lib/tests/bitops_kunit.c test_test_and_change_bit() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 8172114493323923456 |
| BUF_SIZE | 1 | addr | 32 |
lib/tests/bitops_kunit.c test_test_and_change_bit() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | addr | 8172114493323923456 |
| BUF_SIZE | 1 | addr | 32 |
drivers/net/ethernet/qlogic/qed/qed_rdma.c qed_rdma_toggle_bit_create_resize_cq() -> test_and_change_bit()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &p_info->lock | ||
| LOCK2 | bh | ||
| TYPE_LOCK | (struct qed_rdma_info)->lock |