Home | History | Annotate | Download | only in common
History log of /src/sys/compat/common/tty_60.c
RevisionDateAuthorComments
 1.11  21-Jul-2021  skrll need <sys/param.h> for COHERENCY_UNIT

Minor KNF along the way.
 1.10  24-Jun-2020  jdolecek branches: 1.10.6;
reduce stack usage in compat_60_ptmget_ioctl() - allocate struct ptmget
via kmem_alloc()
 1.9  12-Dec-2019  pgoyette Rather than keeping a separate mutex, condvar, and pserialize for each
module hook, we can share a common set of synchronization structures.
This cuts the amount of cacheline_aligned data for these structures by
50%.

Note that we still have a per-hook localcount, since we need to count
individual references.

As discussed with riastradh@

Welcome to 9.99.22 !
 1.8  01-Mar-2019  pgoyette Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.
 1.7  29-Jan-2019  pgoyette Normalize all the compat hooks' names to the form

<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.
 1.6  28-Jan-2019  christos - provide a hook for the 43 tty ioctls
- make the 60 tty ioctl hook look the same
- fix the tty code to call both hooks and remove unused lock
 1.5  27-Jan-2019  pgoyette Merge the [pgoyette-compat] branch
 1.4  22-Oct-2015  christos branches: 1.4.2; 1.4.8; 1.4.16; 1.4.18;
Handle both ioctls in both places :-)
 1.3  19-Oct-2012  apb branches: 1.3.2; 1.3.4; 1.3.18;
Also copy the sfd element of struct ptmget. This somehow
got lost between testing and commit.
 1.2  19-Oct-2012  apb This file getscompiled even if COMPAT_60 is not defined, so
protect most of the contents with #ifdef COMPAT_60
 1.1  19-Oct-2012  apb Add COMPAT_60 versions of the TIOCPTMGET and TIOCPTSNAME ioctls.
 1.3.18.1  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.3.4.3  03-Dec-2017  jdolecek update from HEAD
 1.3.4.2  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.3.4.1  19-Oct-2012  tls file tty_60.c was added on branch tls-maxphys on 2012-11-20 03:01:53 +0000
 1.3.2.2  30-Oct-2012  yamt sync with head
 1.3.2.1  19-Oct-2012  yamt file tty_60.c was added on branch yamt-pagecache on 2012-10-30 17:20:39 +0000
 1.4.18.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.4.18.1  10-Jun-2019  christos Sync with HEAD
 1.4.16.7  23-Jan-2019  pgoyette Convert the macros for setting and unsetting a hook to generate
in-line code rather than using an intermediary hook##set routine.
Hooks are set and unset only in one place, so the intermediary
routine provides no benefit. IMHO using the macro at the point-
of-call is more readable than using it elsewhere in the code and
then calling the generated intermediary routine (for which you
won't even find its declaration or definition unless you remember
to search for the HOOK_SET macro instead).

NFC intended, will verify with a bulk build and an atf test run.
 1.4.16.6  13-Jan-2019  pgoyette Remove the HOOK2 versions of the MODULE_HOOK macros. There were
only a few uses, and using them led to some lack of clarity in the
code. Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.
 1.4.16.5  15-Oct-2018  pgoyette Convert another hook to the MP-sfe mechanism.

XXX still have three more to convert: openat_10, sysvipc50_sysctl and
XXX compat70_unp_addsockcred
 1.4.16.4  04-Sep-2018  pgoyette Separate COMPAT_BSDPTY stuff from tty COMPAT_60 stuff. Enables
building of COMPAT_60 module whether or not COMPAT_BSDPTY is
defined in the kernel.
 1.4.16.3  18-Mar-2018  pgoyette Merge changes from HEAD into ccd_60.c

For all of the individual xxx_60_{init,fini} routines, don't force
them to artificially return a status; just make them void. This
simplifies the compat_60_{init,fini} handling of errors that remain.
 1.4.16.2  18-Mar-2018  pgoyette Initial pass at getting the tty stuff properly modularized. Subject
to review and revision.
 1.4.16.1  08-Mar-2018  pgoyette We don't need to conditionalize the code on COMPAT_60 since we'll
only include the source file when COMPAT_60 is requested (either
by kernel option or module specification)
 1.4.8.1  27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.4.2.1  20-Jul-2016  pgoyette Adapt machine-independant code to the new {b,c}devsw reference-counting
(using localcount(9)). All callers of {b,c}devsw_lookup() now call
{b,c}devsw_lookup_acquire() which retains a reference on the 'struct
{b,c}devsw'. This reference must be released by the caller once it is
finished with the structure's content (or other data that would disappear
if the 'struct {b,c}devsw' were to disappear).
 1.10.6.1  01-Aug-2021  thorpej Sync with HEAD.

RSS XML Feed