Why printk() is so complicated, and how to fix it (2019)
lwn.net
lwn.net
It would be a miracle if it wasn't incredibly complicated.
But it definitely is ‘useful’ complexity...
Much of the complexity in many cases could be alleviated by different functions depending on what context it is called from.
More than that, there's no "console". QNX often ran on industrial hardware that didn't have a display or even a file system. Problems are reported by sending a message to a logging process. That might ship it over a network to somewhere else.
Why printk() is so complicated, and how to fix it (https://lwn.net/SubscriberLink/800946/a9ad9aba46f14e78/)
90 points |Tomte | 2 years ago | 13 comments