Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/dax/bus.c dev_dax_resize() -> alloc_is_aligned()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev_dax | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 1-u64max |
| CAPPED_DATA | 0 | dev_dax->nr_range | 1 |
| CAPPED_DATA | 1 | size | 1 |
| CAPPED_DATA | 1 | size | 1 |
| DATA_SOURCE | 0 | dev_dax | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | size | 1-u64max[c] |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &dax_dev_rwsem | ||
| LOCK2 | global &dax_region_rwsem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/dax/bus.c dev_dax_validate_align() -> alloc_is_aligned()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev_dax | 4096-ptr_max |
| PARAM_VALUE | 0 | dev_dax->align | 4096,2097152,1073741824 |
| DATA_SOURCE | 0 | dev_dax | $0 |
| DATA_SOURCE | 1 | size | r range_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | dev_dax->align | 4096,2097152,1073741824 |
| NO_OVERFLOW_SIMPLE | 0 | dev_dax->align | |
| LOCK2 | &of->mutex | ||
| LOCK2 | global &dax_dev_rwsem | ||
| LOCK2 | global &dax_region_rwsem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/dax/bus.c mapping_store() -> alloc_is_aligned()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev_dax | 4096-ptr_max |
| DATA_SOURCE | 0 | dev_dax | r to_dev_dax |
| DATA_SOURCE | 1 | size | r range_len |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | global &dax_dev_rwsem | ||
| LOCK2 | global &dax_region_rwsem | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/dax/bus.c size_store() -> alloc_is_aligned()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev_dax | 4096-ptr_max |
| DATA_SOURCE | 0 | dev_dax | r to_dev_dax |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | size | 0-u64max |
| NO_OVERFLOW_SIMPLE | 1 | size | |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |