Add ttyalloc() which in due time will be the successor to ttymalloc(),
but without the "struct tty *" argument.
This commit is contained in:
parent
d622ef6993
commit
3e6bf9fb86
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135363
@ -2798,6 +2798,13 @@ ttymalloc(struct tty *tp)
|
||||
return (tp);
|
||||
}
|
||||
|
||||
struct tty *
|
||||
ttyalloc()
|
||||
{
|
||||
|
||||
return (ttymalloc(NULL));
|
||||
}
|
||||
|
||||
static int
|
||||
sysctl_kern_ttys(SYSCTL_HANDLER_ARGS)
|
||||
{
|
||||
|
@ -312,6 +312,7 @@ int ttstart(struct tty *tp);
|
||||
void ttwakeup(struct tty *tp);
|
||||
int ttwrite(struct tty *tp, struct uio *uio, int flag);
|
||||
void ttwwakeup(struct tty *tp);
|
||||
struct tty *ttyalloc(void);
|
||||
void ttyblock(struct tty *tp);
|
||||
void ttychars(struct tty *tp);
|
||||
int ttycheckoutq(struct tty *tp, int wait);
|
||||
|
Loading…
Reference in New Issue
Block a user