]> git.baikalelectronics.ru Git - kernel.git/commit
tty: use krefs to protect driver module counts
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:37:36 +0000 (10:37 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:40 +0000 (09:51 -0700)
commit2b93a713b099028476bc918aa2ba65bfb3126ea0
tree1ebd77aae1dc887676915b3c469d84681db2d9ac
parentee93b500757d1c68a53c49ecf8aa1ea734bc40c3
tty: use krefs to protect driver module counts

The tty layer keeps driver module counts that are used so the driver knows
when it can be unloaded. For obvious reasons we want to tie that to the
refcounting properly.

At this point the driver side itself isn't refcounted nicely but we can do
that later and kref the drivers.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c