3

I read, that drivers are a way to expand the Kernels abilities to communicate with hardware devices, since there are so many and will be even more the Kernel has to be expandable. In order to establish a communication to a hardware device via the driver a Program in Userspace has to establish a connection to the driver by the systemcall ioctl().

Now, a PTTY (pseudo Termimanl) simulates sth. that was originally real hardware, and there is even a driver that has to be accessed with ioctl() in order for a program to communicate with a PTTY.

Because of its special status, I am unsure how this pseudo Terminal is finally realized, is it a part of the Kernel or the Userspace ?

(P.S. is a PTTY the same as TTY )

enter image description here

1 Answer 1

4

It's in kernel space. This article from Linux Device Drivers is a bit dated but still should generally apply: https://lwn.net/images/pdf/LDD3/ch18.pdf

However, there is some effort recently towards replacing the kernel driver with a userspace console called "KMSCON" -- see that project's site for more: http://cgit.freedesktop.org/~dvdhrm/kmscon/tree/README

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.