Re: [PATCH v9 1/3] tty: rename tty_kopen() and add new function tty_kopen_shared()

2020-10-20 Thread Pavel Machek
Hi1 > Introduce a new function tty_kopen_shared() that yields a struct > tty_struct. The semantic difference to tty_kopen() is that the tty is > expected to be used already. So rename tty_kopen() to > tty_kopen_exclusive() for clearness, adapt the single user and put the > common code in a new

[PATCH v9 1/3] tty: rename tty_kopen() and add new function tty_kopen_shared()

2020-10-18 Thread Uwe Kleine-König
Introduce a new function tty_kopen_shared() that yields a struct tty_struct. The semantic difference to tty_kopen() is that the tty is expected to be used already. So rename tty_kopen() to tty_kopen_exclusive() for clearness, adapt the single user and put the common code in a new static helper