April 2012
Intermediate to advanced
352 pages
8h
English
This chapter described the entire code base of nmdm(4), the virtual null modem terminal driver. If you noticed the complete lack of locking in this driver and are alarmed, don’t be. The ns_mtx mutex, which gets initialized in nmdm_alloc, is implicitly acquired by the TTY subsystem before nmdm_outwakeup, nmdm_inwakeup, nmdm_modem, and nmdm_param are called. In short, every operation between nmdm%luA and nmdm%luB is serialized.
Read now
Unlock full access