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_port.c tty_port_default_receive_buf() -> tty_ldisc_receive_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ld | 1-u64max |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 3 | count | 1-u32max |
| BUF_SIZE | 0 | ld | (-1),4,16,24,64,168-s32max |
| BUF_SIZE | 0 | ld | (-1),4,16,24,64,168-s32max |
| DATA_SOURCE | 0 | ld | r tty_ldisc_ref |
| DATA_SOURCE | 1 | p | $1 |
| DATA_SOURCE | 2 | f | $2 |
| DATA_SOURCE | 3 | count | $3 |
| LOCK2 | &buf->lock | ||
| LOCK2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tty_bufhead)->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |
drivers/tty/vt/selection.c paste_selection() -> tty_ldisc_receive_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ld | 1-u64max |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 2 | f | 0 |
| PARAM_VALUE | 3 | count | 0-1010101 |
| BUF_SIZE | 1 | p | (-1),7 |
| BUF_SIZE | 1 | p | (-1),7 |
| DATA_SOURCE | 0 | ld | r tty_ldisc_ref_wait |
| STR_LEN | 0 | ld | (-1),6 |
| STR_LEN | 1 | p | (-1),6 |
| TERMINATED | 1 | p | 1 |
| LOCK2 | &tty->ldisc_sem | ||
| LOCK2 | &vc->port.buf.lock | ||
| LOCK2 | global &vc_sel.lock | ||
| TYPE_LOCK | (struct tty_bufhead)->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem | ||
| TYPE_LOCK | (struct vc_selection)->lock |
drivers/tty/vt/selection.c paste_selection() -> tty_ldisc_receive_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ld | 1-u64max |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 2 | f | 0 |
| PARAM_VALUE | 3 | count | 1-u32max |
| DATA_SOURCE | 0 | ld | r tty_ldisc_ref_wait |
| LOCK2 | &tty->ldisc_sem | ||
| LOCK2 | &vc->port.buf.lock | ||
| LOCK2 | global &vc_sel.lock | ||
| TYPE_LOCK | (struct tty_bufhead)->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem | ||
| TYPE_LOCK | (struct vc_selection)->lock |
drivers/tty/vt/selection.c paste_selection() -> tty_ldisc_receive_buf()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ld | 1-u64max |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | ld->tty->termios_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 2 | f | 0 |
| PARAM_VALUE | 3 | count | 0-1010101 |
| BUF_SIZE | 1 | p | (-1),7 |
| BUF_SIZE | 1 | p | (-1),7 |
| DATA_SOURCE | 0 | ld | r tty_ldisc_ref_wait |
| STR_LEN | 0 | ld | (-1),6 |
| STR_LEN | 1 | p | (-1),6 |
| TERMINATED | 1 | p | 1 |
| LOCK2 | &tty->ldisc_sem | ||
| LOCK2 | &vc->port.buf.lock | ||
| LOCK2 | global &vc_sel.lock | ||
| TYPE_LOCK | (struct tty_bufhead)->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem | ||
| TYPE_LOCK | (struct vc_selection)->lock |