Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/hid/hid-cp2112.c chmod_sysfs_attrs() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 1 attr 1-u64max
PARAM_VALUE 2 mode 292,420
FUZZY_MAX 2 mode 420
BIT_INFO 2 mode 0x124,0x1a4
HARD_MAX 2 mode 420
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &hdev->driver_input_lock
HALF_LOCKED2 &of->mutex

drivers/hwmon/f71805f.c f71805f_probe() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 0 kobj->sd 1-u64max
PARAM_VALUE 2 mode 420
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/f71805f.c set_pwm_enable() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 2 mode 292
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwmon/f71805f.c set_pwm_enable() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 2 mode 420
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/hwmon/w83781d.c w83781d_create_files() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 0 kobj->sd 1-u64max
PARAM_VALUE 1 attr 8133009185004011520
PARAM_VALUE 2 mode 420
RX_PATH
TASK_NOT_RUNNING

drivers/scsi/scsi_transport_spi.c spi_host_configure() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 1 attr 1585555284811362304
PARAM_VALUE 2 mode 420
BUF_SIZE 0 kobj 248
BUF_SIZE 1 attr 40

drivers/hwmon/f75375s.c f75375_probe() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 0 kobj->sd 1-u64max
PARAM_VALUE 1 attr 2097650559736152064
PARAM_VALUE 2 mode 420
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/f75375s.c f75375_probe() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 0 kobj->sd 4096-ptr_max
PARAM_VALUE 1 attr 2562223198851203072
PARAM_VALUE 2 mode 420
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/dme1737.c dme1737_chmod_file() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 2 mode 292,420
DATA_SOURCE 1 attr $1
DATA_SOURCE 2 mode $2
HARD_MAX 2 mode 420
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &data->update_lock
HALF_LOCKED2 &of->mutex

drivers/hwmon/w83795.c w83795_check_dynamic_in_limits() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 2 mode 292
RX_PATH
TASK_NOT_RUNNING

drivers/hwmon/w83795.c w83795_check_dynamic_in_limits() -> sysfs_chmod_file()

Type Parameter Key Value
PARAM_VALUE 0 kobj 4096-ptr_max
PARAM_VALUE 0 kobj->sd 4096-ptr_max
PARAM_VALUE 2 mode 292
RX_PATH
TASK_NOT_RUNNING