Add an instance parameter devpts interfaces
Pass-in 'inode' or 'tty' parameter to devpts interfaces. With multiple devpts instances, these parameters will be used in subsequent patches to identify the instance of devpts mounted. The parameters also help simplify devpts implementation. Changelog[v3]: - minor changes due to merge with ttydev updates - rename parameters to emphasize they are ptmx or pts inodes - pass-in tty_struct * to devpts_pty_kill() (this will help cleanup the get_node() call in a subsequent patch) Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4a2b5fddd5
commit
15f1a6338d
5 changed files with 47 additions and 30 deletions
|
@ -225,7 +225,8 @@ struct tty_struct;
|
|||
struct tty_driver;
|
||||
|
||||
struct tty_operations {
|
||||
struct tty_struct * (*lookup)(struct tty_driver *driver, int idx);
|
||||
struct tty_struct * (*lookup)(struct tty_driver *driver,
|
||||
struct inode *inode, int idx);
|
||||
int (*install)(struct tty_driver *driver, struct tty_struct *tty);
|
||||
void (*remove)(struct tty_driver *driver, struct tty_struct *tty);
|
||||
int (*open)(struct tty_struct * tty, struct file * filp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue