Date: Mon, 29 May 2000 16:02:16 -0600
From: Prarit <prarit@youtwo.net>
Does anyone have driver (any driver!) code using n_tty_ioctl that
they could send me? I'm trying to use the "open" command to get
an fd in a driver -- but can't (obviously because it's not in
the ksyms listing) ...
Huh? What are you doing? n_tty_ioctl the ioctl handler for the N_TTY.
If you are writing a tty driver, you don't need to worry about
n_tty_ioctl; if the tty's line discpline is N_TTY, it gets called
automatically.
As for trying to get a fd in a driver, you can't do that. File
descriptors are userspace entities; you can't have fd in kernel space.
What precisely, are you trying to do? If I had to guess you probably
need to be creating a tty line discpline, but until you state exactly
what it is you're trying to do, I can't be sure.
- Ted
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:22 EST