Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/tty/tty_io.c
- drivers/tty/tty_ioctl.c, line 928
- drivers/tty/tty_ldisc.c, line 249
- drivers/tty/vt/selection.c, line 409
Smatch caller information:
drivers/tty/tty_io.c file_tty_write() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->write | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->write_room | 0,4096-ptr_max |
| DATA_SOURCE | 0 | tty | r file_tty |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/tty/tty_io.c tiocgetd() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->chars_in_buffer | 0,4096-ptr_max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
drivers/tty/tty_io.c tiocsti() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->driver | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->chars_in_buffer | 0,4096-ptr_max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | $0 |
drivers/tty/tty_io.c tty_compat_ioctl() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->compat_ioctl | 0,1607379221601308672,5008286898947497984,6364353445524312064 |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | r file_tty |
| USER_DATA | 0 | tty->driver_data->vc_font.height | 2-128[c] |
| USER_DATA | 0 | tty->driver_data->vc_font.width | 1-64[c] |
| USER_DATA | 0 | tty->driver_data->vt_mode.acqsig | s16min-s16max |
| USER_DATA | 0 | tty->driver_data->vt_mode.mode | 0 |
| USER_DATA | 0 | tty->driver_data->vt_mode.relsig | s16min-s16max |
| USER_DATA | 0 | tty->driver_data->vt_mode.waitv | 0-255 |
drivers/tty/tty_io.c tty_ioctl() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->ioctl | 0,4096-ptr_max |
| CAPPED_DATA | 0 | tty | 1 |
| DATA_SOURCE | 0 | tty | r file_tty |
drivers/tty/tty_io.c tty_poll() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 1-u64max |
| DATA_SOURCE | 0 | tty | r file_tty |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu |
drivers/tty/tty_io.c tty_read() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| DATA_SOURCE | 0 | tty | r file_tty |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &pool->lock |
drivers/tty/tty_io.c tty_reopen() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->count | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | tty->driver | 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 |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| BUF_SIZE | 0 | tty | (-1),1-s32max |
| DATA_SOURCE | 0 | tty | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &tty->legacy_mutex | |
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/tty_ioctl.c tty_perform_flush() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 0 | tty | $0 |
drivers/tty/vt/selection.c paste_selection() -> tty_ldisc_ref_wait()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | tty | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->chars_in_buffer | 0,4096-ptr_max |
| PARAM_VALUE | 0 | tty->ops->compat_ioctl | 0,1607379221601308672,5008286898947497984,6364353445524312064 |
| PARAM_VALUE | 0 | tty->ops->ioctl | 0,4096-ptr_max |
| DATA_SOURCE | 0 | tty | $0 |