Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- drivers/md/dm-log.c, line 635
- drivers/media/usb/uvc/uvc_ctrl.c, line 3550
- fs/affs/bitmap.c
- fs/ext4/bitmap.c, line 16
- fs/ocfs2/localalloc.c, line 817
- fs/qnx4/bitmap.c, line 38
- lib/memweight.c, line 39
Smatch caller information:
fs/ext4/bitmap.c ext4_count_free() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ptr | 16,4096-ptr_max |
| DATA_SOURCE | 0 | ptr | $0 |
| DATA_SOURCE | 1 | bytes | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/md/dm-log.c disk_resume() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | ptr | s32min,1-536870912 |
| LOCK2 | &md->suspend_lock | ||
| TYPE_LOCK | (struct mapped_device)->suspend_lock |
fs/ocfs2/localalloc.c ocfs2_local_alloc_count_bits() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bytes | 0-u16max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &local_alloc_inode->i_rwsem |
fs/qnx4/bitmap.c qnx4_count_free_blocks() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bytes | 1-512 |
| CAPPED_DATA | 1 | bytes | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ptr | unit_byte |
| HALF_LOCKED2 | &s->s_umount |
drivers/media/usb/uvc/uvc_ctrl.c uvc_ctrl_init_chain() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | bytes | 0-255 |
| FUZZY_MAX | 1 | bytes | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ptr | unit_byte |
fs/affs/bitmap.c affs_init_bitmap() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ptr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ptr | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ptr | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &fc->uapi_mutex |
fs/affs/bitmap.c affs_init_bitmap() -> memweight()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | *ptr | 0-255 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | ptr | unit_byte |
| UNITS | 1 | bytes | unit_byte |
| HALF_LOCKED2 | &fc->uapi_mutex |