Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 15 files:
- drivers/base/core.c, line 4543
- drivers/block/rnbd/rnbd-clt-sysfs.c, line 663
- drivers/char/misc.c, line 254
- drivers/gpio/gpiolib-sysfs.c
- drivers/leds/led-class.c, line 555
- drivers/misc/genwqe/card_dev.c, line 1283
- drivers/nvme/target/fcloop.c, line 1716
- drivers/staging/greybus/loopback.c, line 1016
- drivers/tty/tty_io.c, line 3637
- drivers/tty/vt/vt.c
- drivers/vdpa/vdpa_user/vduse_dev.c, line 2368
- drivers/video/fbdev/core/fbcon.c, line 3372
- drivers/video/fbdev/core/fbsysfs.c, line 498
- tools/testing/nvdimm/test/ndtest.c, line 745
- tools/testing/nvdimm/test/nfit.c, line 1839
Smatch caller information:
drivers/tty/tty_io.c tty_init() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 2245054211942690816 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 5242881 |
| PARAM_VALUE | 3 | drvdata | 0 |
| PARAM_VALUE | 4 | groups | 5220380796805357568 |
| PARAM_VALUE | 5 | fmt | 3466019920718946304 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 8 |
| STR_LEN | 0 | class | 7 |
| TERMINATED | 5 | fmt | 1 |
drivers/video/fbdev/core/fbcon.c fb_console_init() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 0 |
| PARAM_VALUE | 4 | groups | 1865546892247707648 |
| PARAM_VALUE | 5 | fmt | 5640609631297462272 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 6 |
| STR_LEN | 0 | class | 5 |
| TERMINATED | 5 | fmt | 1 |
| LOCK2 | global &console_sem |
drivers/video/fbdev/core/fbsysfs.c fb_device_create() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 2 | devt | 30408704-30408735 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 5626298784762515456 |
| PARAM_VALUE | 5 | fmt | 6208368011874459648 |
| PARAM_VALUE | 6 | $ | 0-31 |
| BUF_SIZE | 1 | parent | (-1),1616 |
| BUF_SIZE | 1 | parent | (-1),1616 |
| BUF_SIZE | 3 | drvdata | s32min-(-1),1-s32max |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 5 |
| DATA_SOURCE | 3 | drvdata | $0 |
| STR_LEN | 0 | class | 4 |
| BIT_INFO | 2 | devt | 0x1d00000,0x1d0001f |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | parent | unit_byte |
| UNITS | 3 | drvdata | unit_byte |
| LOCK2 | global ®istration_lock | ||
| HALF_LOCKED2 | &dev->clientlist_mutex | ||
| HALF_LOCKED2 | &dev->reclaim_sem | ||
| HALF_LOCKED2 | &hdev->driver_input_lock |
drivers/gpio/gpiolib-sysfs.c gpiochip_sysfs_register() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 5720245734884020224 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 1711420468252016640 |
| PARAM_VALUE | 5 | fmt | 4303740923992637440 |
| BUF_SIZE | 1 | parent | (-1)-0,24-s32max |
| BUF_SIZE | 1 | parent | (-1)-0,24-s32max |
| BUF_SIZE | 3 | drvdata | 40 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 11 |
| DATA_SOURCE | 3 | drvdata | r _kmalloc_noprof |
| STR_LEN | 0 | class | 10 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | parent | unit_byte |
| UNITS | 6 | $ | unit_array_size |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-sysfs.c gpiochip_sysfs_register() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 5720245734884020224 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 6706260427214639104 |
| PARAM_VALUE | 5 | fmt | 8660225304830173184 |
| BUF_SIZE | 1 | parent | (-1)-0,24-s32max |
| BUF_SIZE | 1 | parent | (-1)-0,24-s32max |
| BUF_SIZE | 3 | drvdata | 40 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 7 |
| DATA_SOURCE | 3 | drvdata | r _kmalloc_noprof |
| STR_LEN | 0 | class | 6 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | parent | unit_byte |
| LOCK2 | _T->lock |
drivers/gpio/gpiolib-sysfs.c gpiod_export() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 5720245734884020224 |
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 4096-ptr_max |
| PARAM_VALUE | 5 | fmt | 1571631297480237056 |
| BUF_SIZE | 3 | drvdata | 624 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 7 |
| DATA_SOURCE | 3 | drvdata | r _kzalloc_noprof |
| STR_LEN | 0 | class | 6 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->mutex |
drivers/block/rnbd/rnbd-clt-sysfs.c rnbd_clt_create_sysfs_files() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 7824358025839910912 |
| PARAM_VALUE | 0 | class->namespace | 0 |
| PARAM_VALUE | 0 | class->ns_type | 0 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 0 |
| PARAM_VALUE | 4 | groups | 2386969315119919104 |
| PARAM_VALUE | 5 | fmt | 2277359758107283456 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 4 |
| STR_LEN | 0 | class | 3 |
| TERMINATED | 5 | fmt | 1 |
drivers/char/misc.c misc_register() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 314265516070232064 |
| PARAM_VALUE | 2 | devt | 0,2097152-s32max |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 5 | fmt | 8347350738675638272 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 3 |
| BUF_SIZE | 6 | $ | s32min-(-2),1-s32max |
| CAPPED_DATA | 2 | devt | 1 |
| DATA_SOURCE | 3 | drvdata | $0 |
| STR_LEN | 0 | class | 2 |
| BIT_INFO | 2 | devt | 0xa00000,0x7fffffff |
| TERMINATED | 5 | fmt | 1 |
| UNITS | 1 | parent | unit_byte |
| LOCK2 | global &misc_mtx |
drivers/misc/genwqe/card_dev.c genwqe_device_create() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | parent | 4096-ptr_max |
| PARAM_VALUE | 1 | parent->msi.domain | 4096-ptr_max |
| PARAM_VALUE | 2 | devt | 1-u32max |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 6438831889757495296 |
| PARAM_VALUE | 5 | fmt | 6921355657182289920 |
| BUF_SIZE | 3 | drvdata | s32min-(-1),1-s32max |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 14 |
| DATA_SOURCE | 3 | drvdata | $0 |
| STR_LEN | 0 | class | 13 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 3 | drvdata | unit_byte |
drivers/nvme/target/fcloop.c fcloop_init() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 4016014949934800896 |
| PARAM_VALUE | 0 | class->namespace | 0 |
| PARAM_VALUE | 0 | class->ns_type | 0 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 0 |
| PARAM_VALUE | 4 | groups | 2581901912583086080 |
| PARAM_VALUE | 5 | fmt | 2277359758107283456 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 4 |
| STR_LEN | 0 | class | 3 |
| TERMINATED | 5 | fmt | 1 |
drivers/tty/vt/vt.c do_register_con_driver() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 8112823508613431296 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0-15 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 2851628327463649280 |
| PARAM_VALUE | 5 | fmt | 6472567553070206976 |
| PARAM_VALUE | 6 | $ | 0-15 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 8 |
| STR_LEN | 0 | class | 7 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &console_sem |
drivers/tty/vt/vt.c vtconsole_class_init() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 8112823508613431296 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0-15 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 2851628327463649280 |
| PARAM_VALUE | 5 | fmt | 6472567553070206976 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 8 |
| STR_LEN | 0 | class | 7 |
| TERMINATED | 5 | fmt | 1 |
drivers/tty/vt/vt.c vty_init() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 2245054211942690816 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 4194304 |
| PARAM_VALUE | 3 | drvdata | 0 |
| PARAM_VALUE | 4 | groups | 7542174959370416128 |
| PARAM_VALUE | 5 | fmt | 4861001298779549696 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 5 |
| STR_LEN | 0 | class | 4 |
| TERMINATED | 5 | fmt | 1 |
drivers/vdpa/vdpa_user/vduse_dev.c vduse_create_dev() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 6957300958866305024 |
| PARAM_VALUE | 1 | parent | 0 |
| PARAM_VALUE | 2 | devt | 0-s32max |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 572391181956911104 |
| PARAM_VALUE | 5 | fmt | 8347350738675638272 |
| PARAM_VALUE | 6 | $ | 1-u64max |
| BUF_SIZE | 3 | drvdata | 992 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 3 |
| BUF_SIZE | 6 | $ | 256 |
| DATA_SOURCE | 3 | drvdata | r vduse_dev_create |
| STR_LEN | 0 | class | 2 |
| TERMINATED | 5 | fmt | 1 |
| TERMINATED | 6 | $ | 1 |
| USER_PTR | 6 | $ | |
| LOCK2 | global &vduse_lock |
drivers/staging/greybus/loopback.c gb_loopback_probe() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 6141770735325450240 |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 4 | groups | 4586118817954451456 |
| PARAM_VALUE | 5 | fmt | 7580321981833564160 |
| PARAM_VALUE | 6 | $ | 0-s32max |
| BUF_SIZE | 3 | drvdata | 608 |
| BUF_SIZE | 4 | groups | 16 |
| BUF_SIZE | 5 | fmt | 14 |
| DATA_SOURCE | 3 | drvdata | r _kzalloc_noprof |
| DATA_SOURCE | 6 | $ | r ida_alloc |
| STR_LEN | 0 | class | 13 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/leds/led-class.c led_classdev_register_ext() -> device_create_with_groups()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | class | 8043797387175919616 |
| PARAM_VALUE | 1 | parent->cma_area->nranges | s32min-s32max |
| PARAM_VALUE | 2 | devt | 0 |
| PARAM_VALUE | 3 | drvdata | 4096-ptr_max |
| PARAM_VALUE | 5 | fmt | 8347350738675638272 |
| PARAM_VALUE | 6 | $ | 5533163838757593088 |
| BUF_SIZE | 1 | parent | (-1),1616 |
| BUF_SIZE | 1 | parent | (-1),1616 |
| BUF_SIZE | 3 | drvdata | (-1),768-2020972 |
| BUF_SIZE | 4 | groups | (-1)-0,16 |
| BUF_SIZE | 4 | groups | (-1)-0,16 |
| BUF_SIZE | 5 | fmt | 3 |
| BUF_SIZE | 6 | $ | 64 |
| DATA_SOURCE | 1 | parent | $0 |
| DATA_SOURCE | 3 | drvdata | $1 |
| STR_LEN | 0 | class | (-1),20,23 |
| STR_LEN | 1 | parent | (-1),20,23 |
| STR_LEN | 1 | parent | 2 |
| TERMINATED | 5 | fmt | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | parent | unit_byte |
| LOCK2 | &led_cdev->led_access | ||
| HALF_LOCKED2 | &dev->driver_input_lock | ||
| HALF_LOCKED2 | &glights->lights_lock | ||
| HALF_LOCKED2 | &hdev->driver_input_lock | ||
| HALF_LOCKED2 | &hid->driver_input_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &wl->mutex | ||
| HALF_LOCKED2 | global &iwlwifi_opmode_table_mtx | ||
| TYPE_LOCK | (struct led_classdev)->led_access |