Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 12 files:

Smatch caller information:

drivers/tty/tty_port.c tty_port_close() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 0 port->lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 port->ops->dtr_rts 0,4096-ptr_max
PARAM_VALUE 0 port->ops->shutdown 0,4096-ptr_max
PARAM_VALUE 1 tty 0
DATA_SOURCE 0 port $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
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/tty_port.c tty_port_open() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->ops 4096-ptr_max
PARAM_VALUE 1 tty->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 tty->ops->open 0,4096-ptr_max
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->type 0-1
BUF_SIZE 1 tty s32min,(-1),1-s32max
BUF_SIZE 1 tty s32min,(-1),1-s32max
BUF_SIZE 1 tty->driver_data (-1),1-s32max
BUF_SIZE 1 tty->link->driver_data (-1),1-s32max
CAPPED_DATA 1 tty 1
DATA_SOURCE 0 port $0
DATA_SOURCE 1 tty $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &tty->legacy_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &spk_mutex
HALF_LOCKED2 1 &tty->legacy_mutex

drivers/tty/serial/serial_core.c uart_hangup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 1 tty 0
BUF_SIZE 0 port 984
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &tty->legacy_mutex
LOCK2 _T->lock
HALF_LOCKED2 &tty->driver_data->d_lockref.lock
HALF_LOCKED2 &tty->driver_data->uart_port->lock
TYPE_LOCK (struct tty_struct)->legacy_mutex

drivers/tty/n_gsm.c gsm_dlci_release() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->tty 4096-ptr_max
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &gsm->mutex
HALF_LOCKED2 &tty->ldisc_sem
TYPE_LOCK (struct gsm_mux)->mutex

drivers/tty/n_gsm.c gsmtty_close() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &tty->legacy_mutex
HALF_LOCKED2 global &spk_mutex

drivers/tty/n_gsm.c gsmtty_open() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->ops 4096-ptr_max
PARAM_VALUE 1 tty->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 tty->ops->open 0,4096-ptr_max
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->type 0-1
BUF_SIZE 0 port 984
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty->driver_data (-1),1-s32max
BUF_SIZE 1 tty->link->driver_data (-1)-s32max
DATA_SOURCE 1 tty $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &spk_mutex

drivers/tty/hvc/hvc_console.c hvc_close() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &tty->legacy_mutex
HALF_LOCKED2 global &spk_mutex

drivers/tty/hvc/hvc_console.c hvc_hangup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &tty->legacy_mutex
HALF_LOCKED2 &tty->driver_data->d_lockref.lock
TYPE_LOCK (struct tty_struct)->legacy_mutex

drivers/tty/hvc/hvc_console.c hvc_open() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port->count s32min-1
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->ops 4096-ptr_max
PARAM_VALUE 1 tty->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 tty->ops->open 0,4096-ptr_max
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->type 0-1
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty->driver_data (-1),1-s32max
BUF_SIZE 1 tty->link->driver_data (-1)-s32max
DATA_SOURCE 1 tty $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &spk_mutex

drivers/tty/moxa.c moxa_open() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->driver_data 4096-ptr_max
PARAM_VALUE 1 tty->ops 4096-ptr_max
PARAM_VALUE 1 tty->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 tty->ops->open 0,4096-ptr_max
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->type 0-1
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty->link->driver_data (-1)-s32max
DATA_SOURCE 1 tty $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &spk_mutex

drivers/usb/serial/console.c usb_console_setup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &serial->disc_mutex
LOCK2 global &console_mutex
HALF_LOCKED2 &_T->lock->lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->flags
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem
HALF_LOCKED2 global &dynamic_netconsole_mutex
HALF_LOCKED2 global &goldfish_tty_lock
HALF_LOCKED2 global &psinfo_lock
HALF_LOCKED2 irq

drivers/usb/serial/console.c usb_console_setup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->tty 0,4096-ptr_max
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->driver 4096-ptr_max
PARAM_VALUE 1 tty->driver->owner 0,4096-ptr_max
PARAM_VALUE 1 tty->index s16min-s16max
PARAM_VALUE 1 tty->kref.refcount.refs.counter 1
PARAM_VALUE 1 tty->ldisc_sem.count.counter 0
PARAM_VALUE 1 tty->ldisc_sem.dep_map->name 0-255
PARAM_VALUE 1 tty->ldisc_sem.read_wait.next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.read_wait.next->next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.read_wait.prev 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.read_wait.prev->next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.read_wait.prev->prev 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.wait_lock.magic 3735899821
PARAM_VALUE 1 tty->ldisc_sem.wait_lock.owner (-1)
PARAM_VALUE 1 tty->ldisc_sem.wait_lock.owner_cpu u32max
PARAM_VALUE 1 tty->ldisc_sem.wait_readers 0
PARAM_VALUE 1 tty->ldisc_sem.write_wait.next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.write_wait.next->next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.write_wait.prev 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.write_wait.prev->next 4096-ptr_max
PARAM_VALUE 1 tty->ldisc_sem.write_wait.prev->prev 4096-ptr_max
PARAM_VALUE 1 tty->ops 4925157529898369024
PARAM_VALUE 1 tty->tty_files.next 4096-ptr_max
PARAM_VALUE 1 tty->tty_files.next->next 4096-ptr_max
PARAM_VALUE 1 tty->tty_files.prev 4096-ptr_max
PARAM_VALUE 1 tty->tty_files.prev->next 4096-ptr_max
PARAM_VALUE 1 tty->tty_files.prev->prev 4096-ptr_max
BUF_SIZE 1 tty 1816
BUF_SIZE 1 tty->ops 296
CAPPED_DATA 1 tty->index 1
DATA_SOURCE 1 tty r _kzalloc_noprof
NOSPEC 1 tty->index
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 1 tty->index 0-s16max[c]
USER_DATA 1 tty->termios.c_ispeed 0-u32max
USER_DATA 1 tty->termios.c_ospeed 0-u32max
LOCK2 &serial->disc_mutex
LOCK2 global &console_mutex
HALF_LOCKED2 &_T->lock->lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->flags
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem
HALF_LOCKED2 global &dynamic_netconsole_mutex
HALF_LOCKED2 global &goldfish_tty_lock
HALF_LOCKED2 global &psinfo_lock
HALF_LOCKED2 irq

drivers/usb/serial/console.c usb_console_setup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->tty 0,4096-ptr_max
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &serial->disc_mutex
LOCK2 global &console_mutex
HALF_LOCKED2 &_T->lock->lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->flags
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem
HALF_LOCKED2 global &dynamic_netconsole_mutex
HALF_LOCKED2 global &goldfish_tty_lock
HALF_LOCKED2 global &psinfo_lock
HALF_LOCKED2 irq

drivers/usb/serial/console.c usb_console_setup() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->tty 0,4096-ptr_max
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &serial->disc_mutex
LOCK2 global &console_mutex
HALF_LOCKED2 &_T->lock->lock
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 _T->flags
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &console_sem
HALF_LOCKED2 global &dynamic_netconsole_mutex
HALF_LOCKED2 global &goldfish_tty_lock
HALF_LOCKED2 global &psinfo_lock
HALF_LOCKED2 irq

drivers/net/usb/hso.c hso_serial_close() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 0 port->count 0
PARAM_VALUE 1 tty 0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &serial->parent->mutex
HALF_LOCKED2 &tty->legacy_mutex
HALF_LOCKED2 global &spk_mutex
TYPE_LOCK (struct hso_device)->mutex

drivers/net/usb/hso.c hso_serial_open() -> tty_port_tty_set()

Type Parameter Key Value
PARAM_VALUE 0 port 4096-ptr_max
PARAM_VALUE 1 tty 4096-ptr_max
PARAM_VALUE 1 tty->driver_data 4096-ptr_max
PARAM_VALUE 1 tty->ops 4096-ptr_max
PARAM_VALUE 1 tty->ops->lookup 0,4096-ptr_max
PARAM_VALUE 1 tty->ops->open 0,4096-ptr_max
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 1 tty->termios_rwsem.first_waiter->type 0-1
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty (-1),1-s32max
BUF_SIZE 1 tty->link->driver_data (-1)-s32max
DATA_SOURCE 1 tty $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &serial->parent->mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &spk_mutex
TYPE_LOCK (struct hso_device)->mutex