Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/tty/tty_io.c tty_kopen() -> tty_init_dev()

Type Parameter Key Value
PARAM_VALUE 0 driver 4096-ptr_max
PARAM_VALUE 0 driver->num 1-u32max
PARAM_VALUE 0 driver->ops 4096-ptr_max
PARAM_VALUE 0 driver->ops->lookup 0
PARAM_VALUE 1 idx s32min-(-2),0-s32max
CAPPED_DATA 0 driver->num 1
CAPPED_DATA 1 idx 1
DATA_SOURCE 0 driver r tty_lookup_driver
PARAM_COMPARE 0 driver->num > $1
PARAM_COMPARE 1 idx < $0->num
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &spk_mutex
LOCK2 global &tty_mutex

drivers/tty/tty_io.c tty_open_by_driver() -> tty_init_dev()

Type Parameter Key Value
PARAM_VALUE 0 driver 4096-ptr_max
PARAM_VALUE 0 driver->num 1-u32max
PARAM_VALUE 0 driver->ops 4096-ptr_max
PARAM_VALUE 0 driver->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 idx s32min-(-2),0-s32max
CAPPED_DATA 0 driver->num 1
CAPPED_DATA 1 idx 1
DATA_SOURCE 0 driver r tty_lookup_driver
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &tty_mutex

drivers/tty/serdev/serdev-ttyport.c ttyport_open() -> tty_init_dev()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 1 idx unit_array_size
HALF_LOCKED2 &ctrl->lock
HALF_LOCKED2 &data->serdev_mutex
HALF_LOCKED2 &gdev->rwsem
HALF_LOCKED2 &hdev->req_lock
HALF_LOCKED2 &nfc_dev->dev.mutex

drivers/tty/pty.c ptmx_open() -> tty_init_dev()

Type Parameter Key Value
PARAM_VALUE 1 idx 0-s32max
DATA_SOURCE 1 idx r devpts_new_index
RX_PATH
TASK_NOT_RUNNING
LOCK2 _T->lock