| Age | Commit message (Collapse) | Author |
|
Instead, tty_io.c will always copy user space data to
kernel space, leaving the drivers to worry only about
normal kernel buffers.
No more "from_user" flag, and having the user copy in
each driver.
This cleans up the code and also fixes a number of
locking bugs.
|
|
No problems reported other than Linus typo in an unbuildable driver from
the last one.
This one adds tty_ldisc_flush and also makes tty_wakeup do the queue
wake as discussed with Paul. I've then propagated these functions
through all the drivers. This means most drivers don't know about the
ldisc locking and instead call generic functions that look after it.
The result is the removal of a lot of duplicate code both for ldisc
referencing and historical code for handling tty ldisc wakeup semantics.
A nice side effect is that by adding versions of the two helpers we can
switch most of the drivers over before changing the core tty code if
preferred.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
|
n_tty annotated, ldisc_struct ->read() and ->write() got __user
on their buf argument.
|
|
MODULE_ALIAS_LDISC() is not in any way architecture-specific, so don't
put it in architecture header files.
Here's a patch which moves it to a more sensible location.
|
|
Patch from Max Krasnyansky <maxk@qualcomm.com>
This changeset adds module refcounting for TTY line disciplines. I've sent
the patch to LKM earlier. No negative comments (actually most people didn't
seem to care). This is needed at least for Bluetooth and IrDA (Jean is ok
with the patch).
|
|
- David Miller: sparc rw semaphores moved over
- Alan Cox: yet more resyncs
- NIIBE Yutaka: Super-H driver update
- David Howells: more rw-sem cleanups, updates
- USB updates
- Al Viro: filesystem init cleanup
|
|
|