Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 27 files:
- arch/alpha/kernel/srmcons.c, line 232
- arch/m68k/emu/nfcon.c
- arch/um/drivers/line.c, line 579
- arch/xtensa/platforms/iss/console.c
- drivers/char/ttyprintk.c
- drivers/ipack/devices/ipoctal.c
- drivers/misc/bcm-vk/bcm_vk_tty.c, line 312
- drivers/net/usb/hso.c, line 2240
- drivers/s390/char/con3215.c, line 697
- drivers/s390/char/con3270.c, line 884
- drivers/s390/char/sclp_tty.c, line 568
- drivers/s390/char/sclp_vt220.c
- drivers/tty/amiserial.c
- drivers/tty/ehv_bytechan.c, line 727
- drivers/tty/goldfish.c
- drivers/tty/hvc/hvsi.c, line 1213
- drivers/tty/mips_ejtag_fdc.c, line 1043
- drivers/tty/moxa.c
- drivers/tty/mxser.c
- drivers/tty/nozomi.c
- drivers/tty/serial/serial_core.c
- drivers/tty/tty_port.c
- drivers/tty/ttynull.c
- drivers/tty/vcc.c, line 1001
- drivers/usb/gadget/function/u_serial.c, line 1261
- drivers/usb/host/xhci-dbgtty.c, line 483
- drivers/usb/serial/usb-serial.c, line 678
Smatch caller information:
drivers/tty/tty_port.c tty_port_destructor() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->itty | 0 |
| CAPPED_DATA | 0 | port->xmit_buf | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &tty->legacy_mutex | ||
| HALF_LOCKED2 | global &rfcomm_dev_lock | ||
| HALF_LOCKED2 | global &rfcomm_ioctl_mutex |
drivers/char/ttyprintk.c ttyprintk_exit() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 7945002277798719488 |
| NOCHECK_CALL |
drivers/char/ttyprintk.c ttyprintk_init() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 7945002277798719488 |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.free.first | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.mem_used.counter | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.commit | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.sentinel.lookahead | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.next | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.read | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.size | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.used | 0 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf.work.func | 0 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 63731366424981504 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| MEM_ZERO | 0 | port | |
| NOCHECK_CALL |
drivers/tty/serial/serial_core.c uart_register_driver() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &amba_reg_lock | ||
| HALF_LOCKED2 | global &max3100s_lock | ||
| HALF_LOCKED2 | global &sci_uart_registration_lock |
drivers/tty/serial/serial_core.c uart_unregister_driver() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &_dev->mutex | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | global &max3100s_lock |
drivers/usb/serial/usb-serial.c usb_serial_port_release() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/nozomi.c nozomi_card_init() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.free.first | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.mem_used.counter | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.commit | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.sentinel.lookahead | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.next | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.read | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.size | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.used | 0 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf.work.func | 0 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 3612652778795294720 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/nozomi.c nozomi_card_init() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/nozomi.c tty_exit() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/tty/goldfish.c goldfish_tty_probe() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.free.first | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.mem_used.counter | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.commit | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.sentinel.lookahead | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.next | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.read | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.size | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.used | 0 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf.work.func | 0 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5739540654816034816 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | port->blocked_open | 0 |
| HOST_DATA | 0 | port->buf.lock.osq.tail.counter | 0 |
| HOST_DATA | 0 | port->buf.lock.owner.counter | 0 |
| HOST_DATA | 0 | port->buf.mem_limit | 655360 |
| HOST_DATA | 0 | port->buf.mem_used.counter | 0 |
| HOST_DATA | 0 | port->buf.priority.counter | 0 |
| HOST_DATA | 0 | port->buf.sentinel.commit | 0 |
| HOST_DATA | 0 | port->buf.sentinel.flags | 1 |
| HOST_DATA | 0 | port->buf.sentinel.lookahead | 0 |
| HOST_DATA | 0 | port->buf.sentinel.read | 0 |
| HOST_DATA | 0 | port->buf.sentinel.size | 0 |
| HOST_DATA | 0 | port->buf.sentinel.used | 0 |
| HOST_DATA | 0 | port->buf.work.data.counter | 0 |
| HOST_DATA | 0 | port->buf_mutex.osq.tail.counter | 0 |
| HOST_DATA | 0 | port->buf_mutex.owner.counter | 0 |
| HOST_DATA | 0 | port->close_delay | 125 |
| HOST_DATA | 0 | port->closing_wait | 7500 |
| HOST_DATA | 0 | port->console | 0 |
| HOST_DATA | 0 | port->count | 0 |
| HOST_DATA | 0 | port->drain_delay | 0 |
| HOST_DATA | 0 | port->flags | 0 |
| HOST_DATA | 0 | port->iflags | 0 |
| HOST_DATA | 0 | port->kref.refcount.refs.counter | 1 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.esize | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.in | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.mask | 0 |
| HOST_DATA | 0 | port->xmit_fifo.kfifo.out | 0 |
| LOCK2 | global &goldfish_tty_lock |
drivers/tty/goldfish.c goldfish_tty_remove() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &_dev->mutex |
drivers/usb/host/xhci-dbgtty.c xhci_dbc_tty_exit_port() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->tty | 0,4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/moxa.c moxa_board_deinit() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &dev->mutex |
drivers/tty/moxa.c moxa_init_board() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/ipack/devices/ipoctal.c __ipoctal_remove() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &device->mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/ipack/devices/ipoctal.c ipoctal_inst_slot() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.free.first | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.mem_used.counter | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.commit | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.sentinel.lookahead | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.next | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.read | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.size | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.used | 0 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf.work.func | 0 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 4431124432647593984 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| MEM_ZERO | 0 | port | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/misc/bcm-vk/bcm_vk_tty.c bcm_vk_tty_exit() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/ttynull.c ttynull_exit() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 8427960105842417664 |
| NOCHECK_CALL |
drivers/tty/ttynull.c ttynull_init() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 8427960105842417664 |
| PARAM_VALUE | 0 | port->buf.flip_wq | 0 |
| PARAM_VALUE | 0 | port->buf.free.first | 0 |
| PARAM_VALUE | 0 | port->buf.head | 256 |
| PARAM_VALUE | 0 | port->buf.lock.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->buf.mem_limit | 655360 |
| PARAM_VALUE | 0 | port->buf.mem_used.counter | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.commit | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.flags | 1 |
| PARAM_VALUE | 0 | port->buf.sentinel.lookahead | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.next | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.read | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.size | 0 |
| PARAM_VALUE | 0 | port->buf.sentinel.used | 0 |
| PARAM_VALUE | 0 | port->buf.tail | 256 |
| PARAM_VALUE | 0 | port->buf.work.func | 0 |
| PARAM_VALUE | 0 | port->buf_mutex.magic | 4096-ptr_max |
| PARAM_VALUE | 0 | port->client_ops | 6331571049099714560 |
| PARAM_VALUE | 0 | port->close_delay | 125 |
| PARAM_VALUE | 0 | port->closing_wait | 7500 |
| PARAM_VALUE | 0 | port->console | 0 |
| PARAM_VALUE | 0 | port->count | 0 |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->delta_msr_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->flags | 0 |
| PARAM_VALUE | 0 | port->iflags | 0 |
| PARAM_VALUE | 0 | port->itty | 0 |
| PARAM_VALUE | 0 | port->kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | port->open_wait.head.next | 4096-ptr_max |
| PARAM_VALUE | 0 | port->open_wait.head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | port->ops | 5758640331834208256 |
| PARAM_VALUE | 0 | port->tty | 0 |
| PARAM_VALUE | 0 | port->xmit_buf | 0 |
| MEM_ZERO | 0 | port | |
| NOCHECK_CALL |
drivers/usb/gadget/function/u_serial.c gserial_free_port() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/mxser.c mxser_probe() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/tty/mxser.c mxser_remove() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/net/usb/hso.c hso_serial_common_free() -> tty_port_destroy()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | port | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |