aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
AgeCommit message (Expand)AuthorFilesLines
2024-01-18Merge tag 'usb-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-0/+3
2024-01-18Merge tag 'tty-6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-7/+11
2023-12-15usb: cdc-acm: return correct error code on unsupported breakOliver Neukum1-0/+3
2023-12-13tty: add new helper function tty_get_tiocmFlorian Eckert1-6/+22
2023-12-08tty: core: the rest to u8Jiri Slaby (SUSE)1-5/+5
2023-12-08tty: make tty_operations::send_xchar accept u8 charJiri Slaby (SUSE)1-1/+1
2023-11-25tty: remove unneeded mbz from tiocsti()Jiri Slaby (SUSE)1-2/+2
2023-11-25tty: deprecate tty_write_message()Jiri Slaby (SUSE)1-0/+4
2023-11-03Merge tag 'tty-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-65/+65
2023-11-01Merge tag 'sysctl-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/m...Linus Torvalds1-1/+0
2023-10-21tty: whitespaces in descriptions corrected by replacing tabs with spacesFlorian Eckert1-47/+47
2023-10-18tty: convert to new timestamp accessorsJeff Layton1-3/+7
2023-10-11tty: Remove now superfluous sentinel element from ctl_table arrayJoel Granados1-1/+0
2023-10-03tty: use 'if' in send_break() instead of 'goto'Jiri Slaby (SUSE)1-5/+4
2023-10-03tty: don't check for signal_pending() in send_break()Jiri Slaby (SUSE)1-2/+1
2023-10-03tty: early return from send_break() on TTY_DRIVER_HARDWARE_BREAKJiri Slaby (SUSE)1-15/+17
2023-10-03tty: stop using ndash in kernel-docJiri Slaby (SUSE)1-4/+4
2023-09-01Merge tag 'tty-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-30/+20
2023-08-21kill do_each_thread()Oleg Nesterov1-2/+2
2023-08-11tty: use min() for size computation in iterate_tty_read()Jiri Slaby (SUSE)1-2/+1
2023-08-11tty: switch size and count types in iterate_tty_read() to size_tJiri Slaby (SUSE)1-2/+2
2023-08-11tty: use ssize_t for iterate_tty_read() returned typeJiri Slaby (SUSE)1-8/+8
2023-08-11tty: use min() in iterate_tty_write()Jiri Slaby (SUSE)1-6/+2
2023-08-11tty: rename and de-inline do_tty_write()Jiri Slaby (SUSE)1-3/+3
2023-08-11tty: don't pass write() to do_tty_write()Jiri Slaby (SUSE)1-7/+4
2023-08-11tty: change tty_write_lock()'s ndelay parameter to boolJiri Slaby (SUSE)1-3/+3
2023-07-31Merge 6.5-rc4 into tty-nextGreg Kroah-Hartman1-1/+1
2023-07-25tty: make check_tty_count() voidJiri Slaby1-3/+1
2023-07-20TIOCSTI: always enable for CAP_SYS_ADMINSamuel Thibault1-1/+1
2023-07-03Merge tag 'tty-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-11/+20
2023-06-15tty: tty_io: update timestamps on all device nodesMichal Sekletar1-11/+20
2023-05-24tty, proc, kernfs, random: Use copy_splice_read()David Howells1-2/+2
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-13/+11
2023-04-03tty: make tty_class a static const structureGreg Kroah-Hartman1-13/+11
2023-03-29tty: Prevent writing chars during tcsetattr TCSADRAIN/FLUSHIlpo Järvinen1-2/+2
2023-03-17driver core: class: remove module * from class_create()Greg Kroah-Hartman1-1/+1
2023-03-09tty: simplify sysctl registrationLuis Chamberlain1-19/+1
2023-01-19tty: fix out-of-bounds access in tty_driver_lookup_tty()Sven Schnelle1-3/+5
2022-12-16Merge tag 'driver-core-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2022-12-16Merge tag 'tty-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-2/+43
2022-12-02tty: tty_io: use console_list_lock for list synchronizationJohn Ogness1-6/+12
2022-12-02tty: tty_io: document console_lock usageJohn Ogness1-0/+10
2022-11-24driver core: make struct class.devnode() take a const *Greg Kroah-Hartman1-1/+1
2022-11-08tty: Move TIOCSTI toggle variable before kerndocKees Cook1-1/+1
2022-11-03tty: Allow TIOCSTI to be disabledKees Cook1-0/+11
2022-11-03tty: Move sysctl setup into "core" tty logicKees Cook1-2/+32
2022-09-22tty: remove TTY_DRIVER_MAGICнаб1-1/+0
2022-09-22tty: remove TTY_MAGICнаб1-8/+0
2022-09-09termios: start unifying non-UAPI parts of asm/termios.hAl Viro1-1/+1
2022-06-10tty: fix typos in commentsJulia Lawall1-1/+1
2022-03-22memcg: enable accounting for tty-related objectsVasily Averin1-1/+1
2021-12-21tty: tty_io: Switch to vmalloc() fallback in case of TTY_NO_WRITE_SPLITAndy Shevchenko1-6/+3
2021-11-26tty: add kernel-doc for tty_standard_installJiri Slaby1-0/+8
2021-11-26tty: add kernel-doc for more tty_driver functionsJiri Slaby1-2/+14
2021-11-26tty: reformat kernel-doc in tty_io.cJiri Slaby1-452/+419
2021-11-25tty: remove file from tty_ldisc_ops::ioctl and compat_ioctlJiri Slaby1-4/+4
2021-11-25tty: clean up whitespace in __do_SAK()Jiri Slaby1-3/+5
2021-11-25tty: remove tty NULL check from __do_SAK()Jiri Slaby1-3/+0
2021-11-25tty: remove TTY_SOFT_SAK part from __do_SAK()Jiri Slaby1-4/+0
2021-08-26tty: Fix data race between tiocsti() and flush_to_ldisc()Nguyen Dinh Phi1-2/+2
2021-07-27tty: drop put_tty_driverJiri Slaby1-6/+0
2021-07-27tty: make tty_set_operations an inlineJiri Slaby1-7/+0
2021-05-20tty: fix kernel-doc for {start,stop}_ttyJiri Slaby1-21/+19
2021-05-20tty: fix kernel-doc for tty_{read,write}Jiri Slaby1-21/+16
2021-05-13tty: tty_io: Remove return in void functionXiaofei Tan1-1/+0
2021-05-13tty: tty_io: Delete a blank line before EXPORT_SYMBOL(foo)Xiaofei Tan1-7/+0
2021-05-13tty: tty_io: Fix an issue of code indent for conditional statementsXiaofei Tan1-1/+1
2021-05-13tty: tty_io: Remove the repeated word 'can'Xiaofei Tan1-1/+1
2021-05-13tty: tty_io: Fix coding style issues of block commentsXiaofei Tan1-7/+12
2021-05-13tty: tty_io: Fix trailing whitespace issuesXiaofei Tan1-1/+1
2021-05-13tty: tty_io: Fix spaces required around that ':'Xiaofei Tan1-1/+1
2021-05-13tty: tty_io: Add a blank line after declarationsXiaofei Tan1-0/+10
2021-05-13tty: tty_io: Remove spaces before tabsXiaofei Tan1-8/+8
2021-05-13tty: cumulate and document tty_struct::ctrl* membersJiri Slaby1-22/+22
2021-05-13tty: cumulate and document tty_struct::flow* membersJiri Slaby1-12/+12
2021-04-15tty: make tty_release_redirect() staticGreg Kroah-Hartman1-2/+1
2021-04-15tty: create internal tty.h fileGreg Kroah-Hartman1-0/+1
2021-04-10tty: refactor TIOCSSERIAL handlingJohan Hovold1-17/+16
2021-04-10tty: use pr_warn_ratelimited() for deprecated serial flagsJohan Hovold1-12/+6
2021-04-10tty: fix return value for unsupported ioctlsJohan Hovold1-5/+5
2021-03-15Merge 5.12-rc3 into tty-nextGreg Kroah-Hartman1-3/+2
2021-03-10tty: localise ptychar and make it constJiri Slaby1-2/+1
2021-03-10tty: let tty_unregister_driver return voidJiri Slaby1-8/+1
2021-03-10Revert "drivers:tty:pty: Fix a race causing data loss on close"Greg Kroah-Hartman1-3/+2
2021-02-20Merge tag 'tty-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-43/+167
2021-02-20tty: protect tty_write from odd low-level tty disciplinesLinus Torvalds1-1/+4
2021-01-29tty: avoid using vfs_iocb_iter_write() for redirected console writesLinus Torvalds1-3/+17
2021-01-25Commit 9bb48c82aced ("tty: implement write_iter") converted the ttySami Tolvanen1-2/+0
2021-01-22tty: fix up hung_up_tty_write() conversionLinus Torvalds1-4/+5
2021-01-22tty: fix up iterate_tty_read() EOVERFLOW handlingLinus Torvalds1-6/+13
2021-01-22tty: fix up hung_up_tty_read() conversionLinus Torvalds1-4/+5
2021-01-22tty: fix up hung_up_tty_write() conversionLinus Torvalds1-4/+5
2021-01-21Merge branch 'tty-splice' of git://git.kernel.org/pub/scm/linux/kernel/git/to...Greg Kroah-Hartman1-34/+96
2021-01-21Merge 9bb48c82aced ("tty: implement write_iter") into tty-linusGreg Kroah-Hartman1-22/+26
2021-01-20tty: implement write_iterLinus Torvalds1-22/+26
2021-01-20tty: implement read_iterLinus Torvalds1-18/+18
2021-01-20tty: convert tty_ldisc_ops 'read()' function to take a kernel pointerLinus Torvalds1-3/+61
2021-01-07drivers:tty:pty: Fix a race causing data loss on closeCorey Minyard1-2/+3
2021-01-07tty: Export redirect releaseCorey Minyard1-8/+24
2020-12-28tty: new helper function tty_get_icount()Uwe Kleine-König1-4/+25
2020-12-28tty: rename tty_kopen() and add new function tty_kopen_shared()Uwe Kleine-König1-18/+38
2020-12-07Merge 5.10-rc7 into tty-nextGreg Kroah-Hartman1-1/+6
2020-12-04tty: Fix ->session lockingJann Horn1-1/+6
2020-11-09Merge 5.10-rc3 into tty-nextGreg Kroah-Hartman1-2/+4
2020-11-06tty: fix crash in release_tty if tty->port is not setMatthias Reichl1-2/+4
2020-11-06tty: tty_io: Fix some kernel-doc issuesLee Jones1-3/+7
2020-11-06tty: tty_io: Move 'tty_sysctl_init's prototype to shared spaceLee Jones1-2/+0
2020-08-18tty: fix kernel-docJiri Slaby1-14/+12
2020-07-29tty: Use the preferred form for passing the size of a structure typeGustavo A. R. Silva1-7/+7
2020-07-29tty: Fix identation issues in struct serial_struct32Gustavo A. R. Silva1-19/+19
2020-07-29tty: Avoid the use of one-element arraysGustavo A. R. Silva1-2/+2
2020-03-18tty: fix compat TIOCGSERIAL checking wrong function ptrEric Biggers1-1/+1
2020-03-18tty: fix compat TIOCGSERIAL leaking uninitialized memoryEric Biggers1-1/+3
2020-03-18tty: drop outdated comments about release_tty() lockingEric Biggers1-6/+2
2019-12-17tty: drop useless variable initialisation in tty_kopen()Uwe Kleine-König1-1/+1
2019-12-03Merge tag 'tty-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/greg...Linus Torvalds1-6/+8
2019-11-22tty: don't crash in tty_init_dev when missing tty_portJiri Slaby1-3/+6
2019-11-20tty: remove unused argument from tty_open_by_driver()Sudip Mukherjee1-3/+2
2019-10-23tty: handle compat PPP ioctlsArnd Bergmann1-0/+4
2019-10-23compat_ioctl: move SIOCOUTQ out of compat_ioctl.cArnd Bergmann1-0/+1
2019-07-30drivers: Introduce device lookup variants by device typeSuzuki K Poulose1-7/+1
2019-05-24tty: tty_io: fix driver refcount imbalance on error pathLin Yi1-1/+3
2019-04-25tty: update obsolete termios commentJohan Hovold1-1/+1
2019-03-29Revert "tty: pty: Fix race condition between release_one_tty and pty_write"Greg Kroah-Hartman1-3/+0
2019-03-28tty: pty: Fix race condition between release_one_tty and pty_writeSahara1-0/+3
2019-01-30tty: ldisc: add sysctl to prevent autoloading of ldiscsGreg Kroah-Hartman1-0/+3
2019-01-21tty: Handle problem if line discipline does not have receive_bufGreg Kroah-Hartman1-1/+2
2019-01-11tty: Don't hold ldisc lock in tty_reopen() if ldisc presentDmitry Safonov1-7/+13
2018-12-10Merge 4.20-rc6 into tty-nextGreg Kroah-Hartman1-2/+9
2018-12-05tty: Simplify tty->count math in tty_reopen()Dmitry Safonov1-8/+5
2018-12-05tty: Hold tty_ldisc_lock() during tty_reopen()Dmitry Safonov1-2/+7
2018-12-05USB: serial: console: fix reported terminal settingsJohan Hovold1-2/+9
2018-10-29Merge tag 'tty-4.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-1/+1
2018-10-24Merge branch 'work.tty-ioctl' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-43/+186
2018-10-24Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-3/+3
2018-10-13change semantics of ldisc ->compat_ioctl()Al Viro1-0/+3
2018-10-13remove fallback to drivers for TIOCGICOUNTAl Viro1-5/+1
2018-10-13take compat TIOC[SG]SERIAL treatment into tty_compat_ioctl()Al Viro1-0/+81
2018-10-13complete ->[sg]et_serial() switchoverAl Viro1-10/+4
2018-10-11tty: check name length in tty_find_polling_driver()Miles Chen1-1/+1
2018-09-18tty: Drop tty->count on tty_reopen() failureDmitry Safonov1-3/+8
2018-09-16tty_io: Use group_send_sig_info in __do_SACK to note it is a session being ki...Eric W. Biederman1-3/+3
2018-09-14tty_ioctl(): start taking TIOC[SG]SERIAL into separate methodsAl Viro1-5/+30
2018-09-14tty_ioctl(): drop FIONBIO handlingAl Viro1-30/+0
2018-09-14move compat handling of tty ioctls to tty_compat_ioctl()Al Viro1-2/+76
2018-08-21Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2018-07-21signal: Use PIDTYPE_TGID to clearly store where file signals will be sentEric W. Biederman1-1/+1
2018-06-28tty: use 64-bit timstampArnd Bergmann1-14/+5
2018-06-05vfs: change inode times to use struct timespec64Deepa Dinamani1-3/+12
2018-04-23tty: Don't call panic() at tty_ldisc_init()Tetsuo Handa1-1/+4
2018-02-28tty: make n_tty_read() always abort if hangup is in progressTejun Heo1-0/+9
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-7/+7
2018-02-01Merge tag 'tty-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-1/+9
2018-01-23tty: fix data race between tty_init_dev and flush of bufGaurav Kohli1-1/+7
2017-12-19pty: cancel pty slave port buf's work in tty_releaseSahara1-0/+2
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-3/+3
2017-11-27anntotate the places where ->poll() return values goAl Viro1-1/+1
2017-11-08tty: add SPDX identifiers to all remaining files in drivers/tty/Greg Kroah-Hartman1-0/+1
2017-09-05Merge tag 'staging-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-7/+96
2017-09-05Merge tag 'tty-4.14-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-0/+9
2017-08-28pty: show associative slave of ptmx in fdinfoMasatake YAMATO1-0/+9
2017-08-28tty: undo export of tty_open_by_driverOkash Khawaja1-2/+1
2017-08-28tty: resolve tty contention between kernel and user spaceOkash Khawaja1-5/+95
2017-08-24pty: Repair TIOCGPTPEEREric W. Biederman1-0/+3
2017-06-27tty: add function to convert device name to numberOkash Khawaja1-0/+50
2017-05-16tty: export tty_open_by_driverOkash Khawaja1-3/+7
2017-04-18tty: split job control support into a file of its ownNicolas Pitre1-536/+11
2017-04-18console: move console_init() out of tty_io.cNicolas Pitre1-24/+0
2017-04-08tty: fix comment typo s/repsonsible/responsible/Thadeu Lima de Souza Cascardo1-1/+1
2017-03-31tty: reset termios state on device registrationJohan Hovold1-0/+11
2017-03-31tty: drop obsolete termios_locked commentsJohan Hovold1-6/+1
2017-03-31tty: close race between device register and openJohan Hovold1-20/+20
2017-03-17drivers/tty: Convert remaining uses of pr_warning to pr_warnJoe Perches1-2/+2
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-1/+1
2017-01-19tty_port: allow a port to be opened with a tty that has no file handleAlan Cox1-1/+1
2017-01-19tty: move the non-file related parts of tty_release to new tty_release_structRob Herring1-18/+32
2016-05-09Merge 4.6-rc7 into tty-nextGreg Kroah-Hartman1-3/+3
2016-04-30tty: Remove stale parameter commentPeter Hurley1-1/+0
2016-04-30tty: Remove unused TTY_NUMBER() macroPeter Hurley1-3/+0
2016-04-30tty: Replace TTY_IO_ERROR bit tests with tty_io_error()Peter Hurley1-3/+2
2016-04-26devpts: more pty driver interface cleanupsLinus Torvalds1-3/+3
2016-03-31tty: Fix merge of "tty: Refactor tty_open()"Peter Hurley1-2/+1
2016-03-31tty: Fix UML console breakagePeter Hurley1-1/+1
2016-01-28tty: Fix ioctl(FIOASYNC) on hungup filePeter Hurley1-2/+3
2016-01-28tty: Add fasync() hung up file operationPeter Hurley1-0/+6
2016-01-28tty, n_tty: Remove fasync() ldisc notificationPeter Hurley1-8/+0
2016-01-27tty: Make tty_files_lock per-ttyPeter Hurley1-13/+12
2016-01-27tty: Move tty_check_change() helperPeter Hurley1-0/+6
2016-01-27tty: Eliminate global symbol tty_ldisc_N_TTYPeter Hurley1-1/+1
2016-01-27tty: Unexport system-wide tty_mutexPeter Hurley1-3/+1
2016-01-27tty: Document c_line == N_TTY initial conditionPeter Hurley1-1/+2
2016-01-27tty: Destroy ldisc instance on hangupPeter Hurley1-6/+6
2016-01-27tty: Use 'disc' for line discipline index namePeter Hurley1-3/+3
2016-01-27tty: Prepare for destroying line discipline on hangupPeter Hurley1-0/+14
2016-01-27tty: Reset c_line from driver's init_termiosPeter Hurley1-2/+3
2016-01-27tty: Refactor tty_open()Peter Hurley1-53/+67
2016-01-27tty: Consolidate noctty checks in tty_open()Peter Hurley1-9/+8
2016-01-27tty: Re-declare tty_driver_remove_tty() file scopePeter Hurley1-1/+1
2016-01-27tty: Fix tty_init_termios() declarationPeter Hurley1-9/+4