The tty Layer

In the first of a series of articles on device-driver development, we'll start with how the kernel handles the system console and serial ports.
Conclusion

We have covered the basics of the tty layer, explaining all of the different fields in the tty_driver structure for the 2.4 kernel tree and pointing out which ones are necessary for a driver to implement. The tiny_tty.c driver, see Listing 3 [available at ftp.linuxjournal.com/pub/lj/listings/issue100/5896.tgz], is a good example of a very minimal tty driver that successfully works. Feel free to use this code as an example for your own tty drivers in the future.

Resources

Greg Kroah-Hartman is currently the Linux USB and PCI Hot Plug kernel maintainer. He works for IBM, doing various Linux kernel-related things and can be reached at greg@kroah.com.

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Needs some explanation

Sathish Kumar's picture

The explanation is fine... but if we add the flow graph it will be useful for newbies.....
Please explain detail about tty driver, device, layer...... beacuse the flow is not clear

Need flow diagram

Ajay Thakur's picture

Yes this article is good but it takes time to understand
the flow of data from application to hardware and vice-versa.
It would be good if you can add data flow diagram.
Thanks
Ajay

Re: The tty Layer

Anonymous's picture

the section of "why no Read" is not clear, can you explain more ?

Re: The tty Layer

Anonymous's picture

Excellet article, one suggestion.
Adding a listing section which carries a Test code to perform
test on tty driver will be very usefull for newbies.

Brilliant article !!!

Romel's picture

Brilliant article !!!
but more codes example would have been helpful for newbies like me..
thanks..
cheers
romel
INDIA

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState