]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
devpts: factor out PTY index allocation
authorSukadev Bhattiprolu <sukadev@us.ibm.com>
Wed, 30 Apr 2008 07:54:21 +0000 (00:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:48 +0000 (08:29 -0700)
commit718a916338e821a10961e6a7a17430c18e5e58d9
treeb261fd36e7a4f642223668596c85da62b60729a4
parent4f8f9d66cdac4845409f7520e4f287a1907a6bf9
devpts: factor out PTY index allocation

Factor out the code used to allocate/free a pts index into new interfaces,
devpts_new_index() and devpts_kill_index().  This localizes the external data
structures used in managing the pts indices.

[akpm@linux-foundation.org: undo accidental mutex2sem conversion]
Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c
fs/devpts/inode.c
include/linux/devpts_fs.h