Defined in 1 files as a function:
Referenced in 7 files:
- block/blk-throttle.c
- include/linux/cgroup.h, line 735
- kernel/cgroup/cgroup.c
- kernel/cgroup/cpuset.c
- mm/hugetlb_cgroup.c
- mm/memcontrol-v1.c
- security/device_cgroup.c, line 785
Smatch caller information:
security/device_cgroup.c devcgroup_access_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &devcgroup_mutex | ||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
block/blk-throttle.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
block/blk-throttle.c tg_set_conf() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &bdev->bd_queue->rq_qos_mutex | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
block/blk-throttle.c tg_set_conf() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &bdev->bd_queue->rq_qos_mutex | ||
| LOCK2 | irq | ||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
block/blk-iocost.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/cgroup/rdma.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| LOCK2 | global &rdmacg_mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/cgroup/cpuset.c cpuset_write_resmask() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &cpuset_mutex | ||
| LOCK2 | global &cpuset_top_mutex | ||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cgroup/cpuset.c cpuset_write_resmask() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cgroup/cpuset.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
mm/hugetlb_cgroup.c hugetlb_cgroup_reset() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb_cgroup.c hugetlb_cgroup_reset() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb_cgroup.c hugetlb_cgroup_reset() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb_cgroup.c hugetlb_cgroup_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| STR_LEN | 0 | of | 2-3 |
| STR_LEN | 0 | of | 2-3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb_cgroup.c hugetlb_cgroup_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| STR_LEN | 0 | of | 2-3 |
| STR_LEN | 0 | of | 2-3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/hugetlb_cgroup.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/cgroup/cgroup.c cgroup_file_open() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | 392 |
| BUF_SIZE | 0 | of->file | (-1)-s32max |
| BUF_SIZE | 0 | of->kn | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of->seq_file->private | 392 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | of->file->f_flags | 0-u32max |
| USER_DATA | 0 | of->file->f_mode | 0,4-u32max[c] |
kernel/cgroup/cgroup.c cgroup_file_poll() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu |
kernel/cgroup/cgroup.c cgroup_file_release() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &root->kernfs_rwsem |
kernel/cgroup/cgroup.c cgroup_file_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/cgroup/cgroup.c of_css() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| STR_LEN | 0 | of | (-1),2-3 |
| STR_LEN | 0 | of | (-1),2-3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| HALF_LOCKED2 | &seq->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &devcgroup_mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | mutex | ||
| HALF_LOCKED2 | rcu_read | ||
| HALF_LOCKED2 | 0 | &of->mutex | |
| HALF_LOCKED2 | 0 | &of->prealloc_mutex |
kernel/cgroup/cgroup.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| HALF_LOCKED2 | &of->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/cgroup/cgroup-v1.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &of->mutex | ||
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
block/blk-iolatency.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
mm/memcontrol-v1.c mem_cgroup_reset() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/memcontrol-v1.c mem_cgroup_reset() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/memcontrol-v1.c mem_cgroup_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
mm/memcontrol-v1.c mem_cgroup_write() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| PARAM_VALUE | 0 | of->kn | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | of->kn->__parent | 1 |
| DATA_SOURCE | 0 | of | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &of->mutex | |
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | 0 | &of->prealloc_mutex | |
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
block/bfq-cgroup.c seq_cft() -> of_cft()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | of | 4096-ptr_max |
| BUF_SIZE | 0 | of | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | of | unit_array_size |
| LOCK2 | &seq->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |