Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/tty/hvc/hvc_console.c, line 394
- drivers/tty/hvc/hvcs.c, line 1163
- drivers/tty/hvc/hvsi.c, line 769
- drivers/tty/n_gsm.c, line 3818
- drivers/tty/n_hdlc.c
- drivers/tty/n_tty.c
- drivers/tty/tty_io.c
- drivers/tty/tty_port.c
Smatch caller information:
drivers/tty/tty_io.c tty_fasync() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 0 | filp->private_data | (-1),26 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_linklen | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size | |
| LOCK2 | &tty->legacy_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/tty_io.c tty_open() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 0 | filp | (-1)-s32max |
| BUF_SIZE | 0 | filp->__f_path.dentry | (-1),1-s32max |
| BUF_SIZE | 0 | filp->f_op | (-1),272 |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->__f_path.dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | filp->f_flags | 0-u32max |
| USER_DATA | 0 | filp->f_mode | 0-u32max[c] |
| USER_DATA | 0 | filp->private_data->file->f_flags | 0,2048-4294967295 |
| USER_DATA | 0 | filp->private_data->file->f_mode | 0-4294967295[c] |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size | |
| USER_PTR | 0 | filp->__f_path.dentry->__d_name.name |
drivers/tty/tty_port.c tty_port_block_til_ready() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp->__f_path.dentry | (-1)-s32max |
| BUF_SIZE | 0 | filp->f_op | (-1),272 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $2 |
| BIT_INFO | 0 | filp->f_flags | 0x0,0xfffff7ff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->__f_path.dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | filp->f_flags | 0-u32max |
| USER_DATA | 0 | filp->f_mode | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| USER_PTR | 0 | filp->__f_path.dentry->__d_name.name | |
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex |
drivers/tty/tty_port.c tty_port_block_til_ready() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp->__f_path.dentry | (-1)-s32max |
| BUF_SIZE | 0 | filp->f_op | (-1),272 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $2 |
| BIT_INFO | 0 | filp->f_flags | 0x0,0xfffff7ff |
| RX_PATH | |||
| USER_DATA | 0 | filp->__f_path.dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | filp->f_flags | 0-u32max |
| USER_DATA | 0 | filp->f_mode | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| USER_PTR | 0 | filp->__f_path.dentry->__d_name.name | |
| LOCK2 | &port->lock | ||
| LOCK2 | irq | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| TYPE_LOCK | (struct tty_port)->lock |
drivers/tty/tty_port.c tty_port_close_start() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 0,4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp->__f_path.dentry | (-1)-s32max |
| BUF_SIZE | 0 | filp->f_op | (-1),272 |
| BUF_SIZE | 0 | filp->private_data | (-1),26 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->__f_path.dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | filp->f_flags | 0-u32max |
| USER_DATA | 0 | filp->f_mode | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_linklen | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size | |
| USER_PTR | 0 | filp->__f_path.dentry->__d_name.name | |
| LOCK2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | &tty->driver_data->d_lockref.lock | ||
| HALF_LOCKED2 | global &spk_mutex | ||
| TYPE_LOCK | (struct tty_struct)->legacy_mutex |
drivers/tty/n_gsm.c gsmld_poll() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |
drivers/tty/n_hdlc.c n_hdlc_tty_poll() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |
drivers/tty/n_hdlc.c n_hdlc_tty_read() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |
drivers/tty/hvc/hvc_console.c hvc_close() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 0,4096-ptr_max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp | (-1),1-s32max |
| BUF_SIZE | 0 | filp->__f_path.dentry | (-1)-s32max |
| BUF_SIZE | 0 | filp->f_op | (-1),272 |
| BUF_SIZE | 0 | filp->private_data | (-1),26 |
| CAPPED_DATA | 0 | filp | 1 |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | filp->__f_path.dentry->__d_name.hash | 0-u32max[c] |
| USER_DATA | 0 | filp->f_flags | 0-u32max |
| USER_DATA | 0 | filp->f_mode | 0-u32max[c] |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_ino | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_linklen | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.dentry->d_inode->i_size | |
| NO_OVERFLOW_SIMPLE | 0 | filp->f_path.moved->d_inode->i_size | |
| USER_PTR | 0 | filp->__f_path.dentry->__d_name.name | |
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | global &spk_mutex |
drivers/tty/n_tty.c n_tty_poll() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->ldisc_sem | ||
| HALF_LOCKED2 | &kvm->irq_srcu | ||
| HALF_LOCKED2 | &of->mutex | ||
| HALF_LOCKED2 | &vm->irqfds_lock | ||
| HALF_LOCKED2 | global &irqfds_srcu | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |
drivers/tty/n_tty.c n_tty_wait_for_input() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_op | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| BIT_INFO | 0 | filp->f_flags | 0x0,0xffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ldata->atomic_read_lock | ||
| LOCK2 | &tty->ldisc_sem | ||
| LOCK2 | &tty->termios_rwsem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct n_tty_data)->atomic_read_lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem | ||
| TYPE_LOCK | (struct tty_struct)->termios_rwsem |
drivers/tty/n_tty.c n_tty_write() -> tty_hung_up_p()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | filp | 4096-ptr_max |
| PARAM_VALUE | 0 | filp->f_op | 4096-ptr_max |
| DATA_SOURCE | 0 | filp | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &tty->atomic_write_lock | ||
| LOCK2 | &tty->ldisc_sem | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tty->termios_rwsem | ||
| TYPE_LOCK | (struct tty_struct)->atomic_write_lock | ||
| TYPE_LOCK | (struct tty_struct)->ldisc_sem |