crash.software
Projects
Pull Requests
Issues
Builds
criu
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
criu
Files
🤬
Sign In
c74b83cd
ROOT
/
criu
/
tty.c
Search
History
2488 lines
|
ISO-8859-1
|
55 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
LOG_PREFIX
MAX_TTYS
MAX_PTY_INDEX
CONSOLE_INDEX
VT_INDEX
CTTY_INDEX
STTY_INDEX
ETTY_INDEX
ETTY_INDEX_MAX
INDEX_ERR
TTY_SUBTYPE_MASTER
TTY_SUBTYPE_SLAVE
winsize_copy
(
d,s
)
termios_copy
(
d,s
)
pty_alloc_fake_master
(
info
)
pty_alloc_fake_slave
(
info
)
HAS_TERMIOS_L
HAS_TERMIOS
HAS_WINS
term_opts_missing_cmp
(
tie,op
)
term_opts_missing_any
(
p
)
term_opts_missing_all
(
p
)
tty_data_entry
list
:
struct list_head
tde
:
TtyDataEntry*
tty_info
list
:
struct list_head
d
:
struct file_desc
reg_d
:
struct file_desc*
tfe
:
TtyFileEntry*
tie
:
TtyInfoEntry*
sibling
:
struct list_head
driver
:
struct tty_driver*
create
:
bool
inherit
:
bool
ctl_tty
:
struct tty_info*
link
:
struct tty_info*
tty_data
:
struct tty_data_entry*
fdstore_id
:
int
tty_dump_info
list
:
struct list_head
id
:
u32
sid
:
pid_t
pgrp
:
pid_t
pid_real
:
pid_t
fd
:
int
mnt_id
:
int
driver
:
struct tty_driver*
index
:
int
lfd
:
int
flags
:
int
link
:
struct tty_dump_info*
tty_data
:
void*
tty_data_size
:
size_t
stdin_isatty
:
bool
self_stdin_fdid
:
int
tty_driver
type
:
short
subtype
:
short
name
:
char*
index
:
int
fd_get_index
:
int(*)(int,const struct fd_parms*)
img_get_index
:
int(*)(struct tty_info*)
open
:
int(*)(struct tty_info*)
ptm_fd_get_index
(
int,const struct fd_parms*
)
{...}
:
int
pty_get_index
(
struct tty_info*
)
{...}
:
int
ext_fd_get_index
(
int,const struct fd_parms*
)
{...}
:
int
pty_open_ptmx
(
struct tty_info*
)
:
int
open_simple_tty
(
struct tty_info*
)
:
int
open_ext_tty
(
struct tty_info*
)
:
int
pts_fd_get_index
(
int,const struct fd_parms*
)
{...}
:
int
get_tty_driver
(
dev_t,dev_t
)
{...}
:
struct tty_driver*
is_pty
(
struct tty_driver*
)
{...}
:
int
tty_mutex
:
mutex_t*
tty_is_master
(
struct tty_info*
)
:
bool
init_tty_mutex
(
void
)
{...}
:
int
tty_gen_id
(
struct tty_driver*,int
)
{...}
:
int
tty_get_index
(
u32
)
{...}
:
int
tty_verify_active_pairs
(
void
)
{...}
:
int
tty_test_and_set
(
int,unsigned long*
)
{...}
:
int
pty_alloc_reg
(
struct tty_info*,bool
)
{...}
:
struct file_desc*
pty_alloc_fake_reg
(
struct tty_info*,int
)
{...}
:
struct reg_file_info*
pty_free_fake_reg
(
struct reg_file_info**
)
{...}
:
void
do_open_tty_reg
(
int,struct reg_file_info*,void*
)
{...}
:
int
open_tty_reg
(
void*,int
)
{...}
:
int
path_from_reg
(
struct file_desc*
)
{...}
:
char*
__pty_open_ptmx_index
(
int,int,int,void*,char*
)
{...}
:
int
pty_open_ptmx_index
(
struct file_desc*,struct tty_info*,int
)
{...}
:
int
unlock_pty
(
int
)
{...}
:
int
lock_pty
(
int
)
{...}
:
int
tty_set_sid
(
int
)
{...}
:
int
tty_set_prgp
(
int,int
)
{...}
:
int
tty_restore_ctl_terminal
(
struct file_desc*
)
{...}
:
int
__tty_is_master
(
struct tty_driver*
)
{...}
:
bool
tty_is_master
(
struct tty_info*
)
{...}
:
bool
tty_is_hung
(
struct tty_info*
)
{...}
:
bool
tty_has_active_pair
(
struct tty_info*
)
{...}
:
bool
tty_show_pty_info
(
char*,struct tty_info*
)
{...}
:
void
tty_parms
tty_id
:
int
has
:
unsigned
tl
:
struct termios
t
:
struct termios
w
:
struct winsize
do_restore_tty_parms
(
void*,int,pid_t
)
{...}
:
int
restore_tty_params
(
int,struct tty_info*
)
{...}
:
int
pty_restore_queued_data
(
struct tty_info*,int
)
{...}
:
void
pty_open_slaves
(
struct tty_info*
)
{...}
:
int
receive_tty
(
struct tty_info*,int*
)
{...}
:
int
pty_open_unpaired_slave
(
struct file_desc*,struct tty_info*
)
{...}
:
int
pty_open_ptmx
(
struct tty_info*
)
{...}
:
int
open_simple_tty
(
struct tty_info*
)
{...}
:
int
open_ext_tty
(
struct tty_info*
)
{...}
:
int
tty_deps_restored
(
struct tty_info*
)
{...}
:
bool
tty_open
(
struct file_desc*,int*
)
{...}
:
int
tty_d_name
(
struct file_desc*,char*,size_t
)
{...}
:
char*
find_first_sid
(
int
)
{...}
:
struct pstree_item*
add_fake_fle
(
struct pstree_item*,u32
)
{...}
:
int
ctl_tty
desc
:
struct file_desc
real_tty
:
struct fdinfo_list_entry*
ctl_tty_open
(
struct file_desc*,int*
)
{...}
:
int
prepare_ctl_tty
(
struct pstree_item*,u32
)
{...}
:
int
tty_find_restoring_task
(
struct tty_info*
)
{...}
:
int
tty_setup_orphan_slavery
(
void
)
{...}
:
int
tty_setup_slavery
(
void
)
{...}
:
int
verify_termios
(
u32,TermiosEntry*
)
{...}
:
int
verify_info
(
TtyInfoEntry*,struct tty_driver*
)
{...}
:
int
tty_info_setup
(
struct tty_info*
)
:
int
collect_one_tty_info_entry
(
void*,ProtobufCMessage*,struct cr_img*
)
{...}
:
int
prep_tty_restore_cb
(
struct pprep_head*
)
{...}
:
int
collect_one_tty
(
void*,ProtobufCMessage*,struct cr_img*
)
{...}
:
int
tty_info_setup
(
struct tty_info*
)
{...}
:
int
collect_one_tty_data
(
void*,ProtobufCMessage*,struct cr_img*
)
{...}
:
int
dump_verify_tty_sids
(
void
)
{...}
:
int
dump_tty_info
(
int,u32,const struct fd_parms*,struct tty_driver*,int
)
{...}
:
int
dump_one_tty
(
int,u32,const struct fd_parms*
)
{...}
:
int
tty_reblock
(
int,int,int
)
{...}
:
int
tty_unblock
(
int,int,int
)
{...}
:
int
tty_do_dump_queued_data
(
struct tty_dump_info*
)
{...}
:
int
__tty_do_writeback_queued_data
(
struct tty_dump_info*
)
{...}
:
void
tty_do_writeback_queued_data
(
struct tty_dump_info*
)
{...}
:
void
tty_dinfo_free
(
struct tty_dump_info*
)
{...}
:
void
tty_dump_queued_data
(
void
)
{...}
:
int
tty_verify_ctty
(
void
)
{...}
:
int
tty_post_actions
(
void
)
{...}
:
int
tty_prep_fds
(
void
)
{...}
:
int
open_pty
(
void*,int
)
{...}
:
int
pty_create_ptmx_index
(
int,int,int
)
{...}
:
int
devpts_check_bindmount
(
struct mount_info*
)
{...}
:
int
devpts_restore
(
struct mount_info*
)
{...}
:
int
All occurrences
Please wait...
Page is in error, reload to recover