diff options
author | mav <mav@FreeBSD.org> | 2008-12-13 21:17:46 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-12-13 21:17:46 +0000 |
commit | 37aff7daa7032f0fb1c864a4f83d04aa3c7bf5ea (patch) | |
tree | d9e25fe3d039b5ca9124d8b071d6154220f8dcb3 /sys/sys/ttyhook.h | |
parent | 1d585eec2563a0e5077fe0c6f7c32e6d74edc663 (diff) | |
download | FreeBSD-src-37aff7daa7032f0fb1c864a4f83d04aa3c7bf5ea.zip FreeBSD-src-37aff7daa7032f0fb1c864a4f83d04aa3c7bf5ea.tar.gz |
Change ttyhook_register() second argument from thread to process pointer.
Thread was not really needed there, while previous ng_tty implementation
that used thread pointer had locking issues (using sx while holding mutex).
Diffstat (limited to 'sys/sys/ttyhook.h')
-rw-r--r-- | sys/sys/ttyhook.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/ttyhook.h b/sys/sys/ttyhook.h index 7a0a0bc..2a6d088 100644 --- a/sys/sys/ttyhook.h +++ b/sys/sys/ttyhook.h @@ -66,7 +66,7 @@ struct ttyhook { th_close_t *th_close; }; -int ttyhook_register(struct tty **, struct thread *, int, +int ttyhook_register(struct tty **, struct proc *, int, struct ttyhook *, void *); void ttyhook_unregister(struct tty *); #define ttyhook_softc(tp) ((tp)->t_hooksoftc) |