aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_tty.c
AgeCommit message (Expand)AuthorFilesLines
2023-10-03tty: invert return values of tty_{,un}throttle_safe()Jiri Slaby (SUSE)1-2/+2
2023-10-03tty: n_tty: use do-while in n_tty_check_{,un}throttle()Jiri Slaby (SUSE)1-12/+7
2023-10-03tty: n_tty: invert the condition in copy_from_read_buf()Jiri Slaby (SUSE)1-18/+20
2023-10-03tty: n_tty: use min3() in copy_from_read_buf()Jiri Slaby (SUSE)1-2/+1
2023-10-03tty: n_tty: rename and retype 'retval' in n_tty_ioctl()Jiri Slaby (SUSE)1-4/+4
2023-10-03tty: n_tty: use 'retval' instead of 'c'Jiri Slaby (SUSE)1-5/+4
2023-08-27tty: n_tty: deduplicate copy code in n_tty_receive_buf_real_raw()Jiri Slaby (SUSE)1-13/+12
2023-08-27tty: n_tty: extract ECHO_OP processing to a separate functionJiri Slaby (SUSE)1-96/+98
2023-08-27tty: n_tty: unify counts to size_tJiri Slaby (SUSE)1-17/+15
2023-08-27tty: n_tty: use u8 for chars and flagsJiri Slaby (SUSE)1-36/+36
2023-08-27tty: n_tty: simplify chars_in_buffer()Jiri Slaby (SUSE)1-6/+2
2023-08-27tty: n_tty: remove unsigned char casts from character constantsJiri Slaby (SUSE)1-3/+3
2023-08-27tty: n_tty: move newline handling to a separate functionJiri Slaby (SUSE)1-8/+19
2023-08-27tty: n_tty: move canon handling to a separate functionJiri Slaby (SUSE)1-71/+87
2023-08-27tty: n_tty: use MASK() for masking out size bitsJiri Slaby (SUSE)1-12/+11
2023-08-27tty: n_tty: make n_tty_data::num_overrun unsignedJiri Slaby (SUSE)1-2/+2
2023-08-27tty: n_tty: use time_is_before_jiffies() in n_tty_receive_overrun()Jiri Slaby (SUSE)1-2/+1
2023-08-27tty: n_tty: use 'num' for writes' countsJiri Slaby (SUSE)1-9/+8
2023-08-27tty: n_tty: use output character directlyJiri Slaby (SUSE)1-2/+1
2023-08-27tty: n_tty: make flow of n_tty_receive_buf_common() a boolJiri Slaby (SUSE)1-3/+3
2023-08-11tty: ldops: unify to u8Jiri Slaby (SUSE)1-6/+5
2023-08-11tty: use u8 for flagsJiri Slaby (SUSE)1-14/+14
2023-08-11tty: use u8 for charsJiri Slaby (SUSE)1-14/+14
2023-08-11tty: make tty_ldisc_ops::*buf*() hooks operate on size_tJiri Slaby (SUSE)1-6/+8
2023-07-25n_tty: make many tty parameters constJiri Slaby1-15/+17
2023-07-25n_tty: pass ldata to canon_skip_eof() directlyJiri Slaby1-3/+2
2023-07-25n_tty: simplify and sanitize zero_buffer()Jiri Slaby1-6/+3
2023-07-25n_tty: drop fp from n_tty_receive_buf_real_raw()Jiri Slaby1-2/+2
2023-06-15tty: fix hang on tty device with no_room setHui Li1-4/+21
2023-03-17n_tty: Reindent if conditionIlpo Järvinen1-1/+1
2023-03-17n_tty: Cleanup includesIlpo Järvinen1-6/+3
2023-03-17n_tty: Use DIV_ROUND_UP() in room calculationIlpo Järvinen1-1/+2
2023-03-17n_tty: Sort includes alphabeticallyIlpo Järvinen1-14/+15
2023-03-17n_tty: Convert no_space_left to space_left booleanIlpo Järvinen1-5/+5
2022-11-22n_tty: Rename tail to old_tail in n_tty_read()Ilpo Järvinen1-3/+3
2022-08-30tty: Make ldisc ->set_termios() old ktermios constIlpo Järvinen1-1/+1
2022-06-10tty: Use flow-control char function on closing pathIlpo Järvinen1-9/+4
2022-06-10tty: Implement lookahead to process XON/XOFF timelyIlpo Järvinen1-16/+75
2022-05-19tty: Rework receive flow control char logicIlpo Järvinen1-5/+11
2022-04-22tty: Add function for handling flow control charsIlpo Järvinen1-11/+18
2022-04-15tty: n_tty: Restore EOF push handling behaviorDaniel Gibson1-1/+37
2022-02-16tty: n_tty: do not look ahead for EOL character past the end of the bufferLinus Torvalds1-4/+2
2022-01-31n_tty: wake up poll(POLLRDNORM) on receiving dataTATSUKAWA KOSUKE (立川 江介)1-2/+2
2022-01-23Merge tag 'bitmap-5.17-rc1' of git://github.com/norov/linuxLinus Torvalds1-1/+1
2022-01-15all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriateYury Norov1-1/+1
2021-11-26tty: reformat kernel-doc in n_tty.cJiri Slaby1-355/+316
2021-11-26tty: fix kernel-doc in n_tty.cJiri Slaby1-26/+27
2021-11-25tty: remove file from tty_ldisc_ops::ioctl and compat_ioctlJiri Slaby1-2/+2
2021-09-22tty: remove file from n_tty_ioctl_helperJiri Slaby1-1/+1
2021-09-22tty: remove flags from struct tty_ldisc_opsJiri Slaby1-1/+0
2021-05-13tty: drop tty_ldisc_ops::refcountJiri Slaby1-1/+1
2021-05-13tty: set tty_ldisc_ops::num staticallyJiri Slaby1-1/+2
2021-05-13tty: cumulate and document tty_struct::ctrl* membersJiri Slaby1-15/+15
2021-05-13tty: cumulate and document tty_struct::flow* membersJiri Slaby1-4/+4
2021-05-13tty: make fp of tty_ldisc_ops::receive_buf{,2} constJiri Slaby1-8/+8
2021-05-13n_tty: remove superfluous return from n_tty_receive_signal_charJiri Slaby1-1/+0
2021-05-13n_tty: invert TTY_NORMAL condition in n_tty_receive_buf_standardJiri Slaby1-14/+17
2021-05-13n_tty: do only one cp dereference in n_tty_receive_buf_standardJiri Slaby1-4/+4
2021-05-13n_tty: make n_tty_receive_char_special return voidJiri Slaby1-16/+11
2021-05-13n_tty: move lnext handlingJiri Slaby1-15/+8
2021-05-13n_tty: drop parmrk_dbl from n_tty_receive_charJiri Slaby1-5/+4
2021-05-13n_tty: drop n_tty_receive_buf_fastJiri Slaby1-33/+3
2021-05-13n_tty: remove n_tty_receive_char_fastJiri Slaby1-26/+6
2021-05-13n_tty: remove n_tty_receive_char wrapperJiri Slaby1-7/+2
2021-04-15tty: create internal tty.h fileGreg Kroah-Hartman1-0/+1
2021-03-10tty: n_tty, set tty_ldisc_ops::ownerJiri Slaby1-0/+1
2021-03-10tty: remove TTY_LDISC_MAGICJiri Slaby1-1/+0
2021-02-20Merge tag 'tty-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-66/+87
2021-01-25Commit 9bb48c82aced ("tty: implement write_iter") converted the ttySami Tolvanen1-5/+2
2021-01-21Merge branch 'tty-splice' of git://git.kernel.org/pub/scm/linux/kernel/git/to...Greg Kroah-Hartman1-66/+85
2021-01-20tty: teach the n_tty ICANON case about the new "cookie continuations" tooLinus Torvalds1-7/+19
2021-01-20tty: teach n_tty line discipline about the new "cookie continuations"Linus Torvalds1-10/+42
2021-01-20tty: clean up legacy leftovers from n_tty line disciplineLinus Torvalds1-20/+9
2021-01-20tty: convert tty_ldisc_ops 'read()' function to take a kernel pointerLinus Torvalds1-48/+34
2021-01-07tty: Protect disc_data in n_tty_close and n_tty_flush_bufferYan.Gao1-0/+2
2020-11-06tty: n_tty: Add 2 missing parameter descriptionsLee Jones1-0/+2
2020-08-18tty: ldiscs, fix kernel-docJiri Slaby1-2/+2
2020-02-23n_tty: Distribute switch variables for initializationKees Cook1-2/+2
2020-02-10n_tty: check printk arguments for n_tty_traceJiri Slaby1-1/+1
2019-04-16n_tty: check for negative and zero space return from tty_write_roomColin Ian King1-2/+2
2019-01-18n_tty: update comment for WAKEUP_CHARS defineValentin Vidic1-2/+4
2018-12-05tty: Don't block on IO when ldisc change is pendingDmitry Safonov1-4/+4
2018-10-11tty: wipe buffer if not echoing dataGreg KH1-3/+17
2018-06-28n_tty: Access echo_* variables carefully.Tetsuo Handa1-18/+24
2018-06-28n_tty: Fix stall at n_tty_receive_char_special().Tetsuo Handa1-5/+8
2018-02-28tty: make n_tty_read() always abort if hangup is in progressTejun Heo1-0/+6
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-8/+8
2018-01-30Merge branch 'misc.poll' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-2/+2
2017-12-21n_tty: fix EXTPROC vs ICANON interaction with TIOCINQ (aka FIONREAD)Linus Torvalds1-2/+2
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-2/+2
2017-11-08tty: Remove redundant license textGreg Kroah-Hartman1-3/+0
2017-11-08tty: add SPDX identifiers to all remaining files in drivers/tty/Greg Kroah-Hartman1-0/+1
2016-05-01Fix OpenSSH pty regression on closeBrian Bloniarz1-37/+33
2016-01-28n_tty: Ignore all read data when closingPeter Hurley1-2/+0
2016-01-28tty: n_tty: fix SIGIO for outputPeter Hurley1-1/+1
2016-01-28n_tty: Remove tty count checks from unthrottlePeter Hurley1-4/+0
2016-01-28n_tty: Fix stuck write wakeupPeter Hurley1-2/+2
2016-01-28tty, n_tty: Remove fasync() ldisc notificationPeter Hurley1-5/+0
2016-01-28n_tty: Always wake up read()/poll() if new inputPeter Hurley1-32/+2
2016-01-27tty: audit: Ignore current association for audit pushPeter Hurley1-1/+1
2016-01-27tty: audit: Remove icanon mode from call chainPeter Hurley1-3/+3
2016-01-27tty: audit: Never audit packet modePeter Hurley1-13/+4
2016-01-27tty: Move tty_check_change() helperPeter Hurley1-6/+0
2016-01-27tty: Eliminate global symbol tty_ldisc_N_TTYPeter Hurley1-4/+8
2016-01-27tty: Remove chars_in_buffer() line discipline methodPeter Hurley1-23/+0
2016-01-26n_tty: Fix unsafe reference to "other" ldiscPeter Hurley1-5/+2
2015-12-21Merge 4.4-rc6 into tty-nextGreg Kroah-Hartman1-13/+9
2015-12-13n_tty: Reduce branching in canon_copy_from_read_buf()Peter Hurley1-4/+3
2015-12-13n_tty: Clarify copy_from_read_buf()Peter Hurley1-4/+4
2015-12-13n_tty: Uninline tty_copy_to_user()Peter Hurley1-15/+18
2015-12-13tty: Define tty_*() printk macrosPeter Hurley1-5/+2
2015-12-12n_tty: Fix poll() after buffer-limited eof push readPeter Hurley1-13/+9
2015-11-20tty: audit: Fix audit sourcePeter Hurley1-1/+1
2015-10-17tty: Abstract tty buffer workPeter Hurley1-1/+1
2015-10-17tty: Combine SIGTTOU/SIGTTIN handlingPeter Hurley1-24/+2
2015-10-17n_tty: Remove reader wakeups for TTY_BREAK/TTY_PARITY charsPeter Hurley1-4/+0
2015-10-04tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.cKosuke Tatsukawa1-10/+5
2015-07-27Merge 4.2-rc4 into tty-nextGreg Kroah-Hartman1-3/+13
2015-07-23tty: add missing rcu_read_lock for task_pgrpPatrick Donnelly1-3/+12
2015-07-23n_tty: signal and flush atomicallyPeter Hurley1-3/+13
2015-06-08Merge 4.1-rc7 into tty-nextGreg Kroah-Hartman1-5/+16
2015-06-01n_tty: Fix auditing support for cannonical modeLaura Abbott1-3/+14
2015-05-24n_tty: Fix calculation of size in canon_copy_from_read_bufMark Tomlinson1-2/+2
2015-05-18Merge 4.1-rc4 into tty-nextGreg Kroah-Hartman1-4/+18
2015-05-10pty: Fix input race when closingPeter Hurley1-4/+18
2015-05-06tty: remove buf parameter from tty_name()Rasmus Villemoes1-5/+2
2015-02-02n_tty: Fix signal handling flushesPeter Hurley1-15/+30
2015-02-02n_tty: Fix read buffer overwrite when no newlinePeter Hurley1-30/+62
2015-02-02n_tty: Fix PARMRK over-throttlingPeter Hurley1-8/+4
2015-02-02n_tty: Fix unordered accesses to lockless read bufferPeter Hurley1-53/+48
2015-02-02n_tty: Simplify throttle threshold calculationPeter Hurley1-1/+1
2015-02-02n_tty: Fix throttle for canon lines > 3967 charsPeter Hurley1-0/+5
2015-02-02n_tty: Eliminate receive_room() from consumer/exclusive pathsPeter Hurley1-11/+12
2015-01-09Revert "tty: Fix pty master poll() after slave closes v2"Peter Hurley1-7/+2
2014-12-14Merge tag 'tty-3.19-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gre...Linus Torvalds1-44/+37
2014-12-09Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-12/+5
2014-11-26n_tty: Fix read_buf race condition, increment read_head after pushing dataChristian Riesch1-1/+2
2014-11-10Merge 3.18-rc4 into tty-next.Greg Kroah-Hartman1-2/+7
2014-11-06tty: Fix pty master poll() after slave closes v2Francesco Ruggeri1-2/+7
2014-11-05pty, n_tty: Simplify input processing on final closePeter Hurley1-26/+20
2014-11-05n_tty: Remove stale read lock commentPeter Hurley1-2/+0
2014-11-05n_tty: Only process packet mode data in raw modePeter Hurley1-10/+11
2014-11-05tty: Fix missed wakeup from packet mode status updatePeter Hurley1-4/+5
2014-11-05pty: Don't claim slave's ctrl_lock for master's packet modePeter Hurley1-2/+2
2014-11-05tty: Use spin_lock_irq() for ctrl_lock when interrupts enabledPeter Hurley1-3/+2
2014-10-28sched, tty: Deal with nested sleepsPeter Zijlstra1-12/+5
2014-09-08tty: Fix spurious poll() wakeupsPeter Hurley1-4/+4
2014-06-19tty: Correct INPCK handlingPeter Hurley1-9/+10
2014-06-03Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds1-1/+1
2014-05-03n_tty: Fix n_tty_write crash when echoing in raw modePeter Hurley1-0/+4
2014-04-18arch: Mass conversion of smp_mb__*()Peter Zijlstra1-1/+1
2014-02-13n_tty: Simplify input_available_p()Peter Hurley1-7/+4
2014-02-13n_tty: Fix stale echo outputPeter Hurley1-5/+7
2014-02-13n_tty: Fix poll() when TIME_CHAR and MIN_CHAR == 0Peter Hurley1-1/+1
2013-12-24Merge 3.13-rc5 into tty-nextGreg Kroah-Hartman1-1/+6
2013-12-17n_tty: Fix apparent order of echoed outputPeter Hurley1-1/+6
2013-12-17n_tty: Fix buffer overruns with larger-than-4k pastesPeter Hurley1-3/+23
2013-12-16Merge 3.13-rc4 into tty-nextGreg Kroah-Hartman1-2/+4
2013-12-08n_tty: Only perform wakeups for waitersPeter Hurley1-6/+12
2013-12-08n_tty: Refactor input_available_p() by call sitePeter Hurley1-3/+4
2013-12-08n_tty: Refactor PARMRK doubling checksPeter Hurley1-9/+5
2013-12-08n_tty: Un-inline slow-path n_tty_receive_char_closing()Peter Hurley1-2/+1
2013-12-08n_tty: Un-inline slow-path n_tty_receive_char()Peter Hurley1-1/+1
2013-12-08n_tty: Merge .receive_buf() flavorsPeter Hurley1-27/+16
2013-11-29n_tty: Fix missing newline echoPeter Hurley1-2/+4
2013-11-25n_tty: Protect minimum_to_wake reset for concurrent readersPeter Hurley1-2/+2
2013-11-25n_tty: Fix 4096-byte canonical readsPeter Hurley1-1/+4
2013-11-25n_tty: Fix echo overrun tail computationPeter Hurley1-1/+1
2013-11-25n_tty: Ensure reader restarts worker for next readerPeter Hurley1-2/+3
2013-10-16tty: incorrect test of echo_buf() result for ECHO_OP_STARTRoel Kluin1-1/+1
2013-10-06Merge 3.12-rc4 into tty-nextGreg Kroah-Hartman1-20/+26
2013-09-30tty: Fix pty master read() after slave closesPeter Hurley1-20/+26
2013-09-29Merge 3.12-rc3 into tty-nextGreg Kroah-Hartman1-2/+1
2013-09-25n_tty: Style fix in n_tty_set_termiosPeter Hurley1-2/+1
2013-09-25n_tty: Remove unnecessary local variablePeter Hurley1-4/+1
2013-09-25n_tty: Remove superfluous reader wakeupPeter Hurley1-3/+0
2013-09-17n_tty: Fix EOF push index when termios changesPeter Hurley1-2/+1
2013-08-12n_tty: Fix termios_rwsem lockdep false positivePeter Hurley1-14/+11
2013-07-24n_tty: Factor LNEXT processing from per-char i/o pathPeter Hurley1-72/+94
2013-07-24n_tty: Un-inline single-use functionsPeter Hurley1-6/+5
2013-07-24n_tty: Remove overflow tests from receive_buf() pathPeter Hurley1-48/+37
2013-07-24n_tty: Factor PARMRK from normal per-char i/oPeter Hurley1-2/+43
2013-07-24n_tty: Factor ISTRIP and IUCLC receive_buf into separate fnPeter Hurley1-12/+32
2013-07-24n_tty: Split n_tty_receive_char()Peter Hurley1-47/+56
2013-07-24n_tty: Eliminate char tests from IXANY restart testPeter Hurley1-7/+12
2013-07-24n_tty: Factor standard per-char i/o into separate fnPeter Hurley1-10/+17
2013-07-24n_tty: Fix build breakage on ppc64Peter Hurley1-0/+1
2013-07-23n_tty: Factor tty->closing receive_buf() into separate fnPeter Hurley1-11/+39
2013-07-23n_tty: Special case EXTPROC receive_buf() as raw modePeter Hurley1-1/+2
2013-07-23n_tty: Factor raw mode receive_buf() into separate fnPeter Hurley1-5/+19
2013-07-23n_tty: Factor flagged char handling into separate fnPeter Hurley1-21/+29
2013-07-23n_tty: Factor signal char handling into separate fnPeter Hurley1-24/+28
2013-07-23n_tty: Factor 'real raw' receive_buf into standalone fnPeter Hurley1-21/+30
2013-07-23n_tty: Simplify __receive_buf loop countPeter Hurley1-5/+3
2013-07-23n_tty: Rename process_char_map to char_mapPeter Hurley1-23/+20
2013-07-23n_tty: Move buffers into n_tty_dataPeter Hurley1-16/+9
2013-07-23n_tty: Remove alias ptrs in __receive_buf()Peter Hurley1-7/+6
2013-07-23n_tty: Fix EOF push handlingPeter Hurley1-17/+17
2013-07-23n_tty: Avoid false-sharing echo buffer indicesPeter Hurley1-5/+4
2013-07-23n_tty: Eliminate counter in __process_echoesPeter Hurley1-8/+1