Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/tty/hvc/hvc_console.c, line 422
- drivers/tty/hvc/hvcs.c, line 1194
- drivers/tty/serdev/serdev-ttyport.c, line 215
- drivers/tty/tty_io.c, line 2667
- drivers/tty/tty_ioctl.c, line 195
- drivers/tty/tty_port.c, line 643
Smatch caller information:
drivers/tty/tty_io.c tty_ioctl() -> tty_wait_until_sent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 1 | timeout | 0 |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | r file_tty |
| NOCHECK_CALL |
drivers/tty/tty_port.c tty_port_close_start() -> tty_wait_until_sent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->closing | 1 |
| PARAM_VALUE | 0 | tty->legacy_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | tty->legacy_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | tty->ops->close | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->ldisc_ok | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->lookup | 0,1028560029362032640,3174408500077174784 |
| PARAM_VALUE | 0 | tty->ops->open | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->set_ldisc | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->set_termios | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->termios_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tty->termios_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | timeout | 0-65534,65536-u32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | 0 | &tty->legacy_mutex | |
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | 0 | &tty->driver_data->d_lockref.lock | |
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/hvc/hvc_console.c hvc_close() -> tty_wait_until_sent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->legacy_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | tty->legacy_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | tty->legacy_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | tty->ops->chars_in_buffer | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->close | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->ldisc_ok | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->lookup | 0,1028560029362032640,3174408500077174784 |
| PARAM_VALUE | 0 | tty->ops->open | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->set_ldisc | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->set_termios | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->write | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->termios_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | tty->termios_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | timeout | 2 |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| BUF_SIZE | 0 | tty | s32min,(-1),1-s32max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &spk_mutex | ||
| HALF_LOCKED2 | 0 | &tty->driver_data->d_lockref.lock | |
| HALF_LOCKED2 | 0 | &tty->legacy_mutex |
drivers/tty/serdev/serdev-ttyport.c ttyport_wait_until_sent() -> tty_wait_until_sent()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | timeout | 0-536870912 |
| DATA_SOURCE | 1 | timeout | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &ctrl->lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &gdev->rwsem | ||
| HALF_LOCKED2 | &gdev->write_mutex | ||
| HALF_LOCKED2 | &hdev->req_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock |