Virtual Serial Port Driver in Linux (Part 2)

Virtual Serial Port Driver in Linux (Part 2)

Introduction In the previous article, we briefly introduced the difference between bare-metal drivers and device drivers, as well as the driver architecture of character devices in the Linux kernel. Without an operating system, upper-layer applications directly access the driver interface, and application engineers need to know the driver interface for each device. When accessing Flash, … Read more

C++ std::filesystem: Elegantly Handling Files and Paths

C++ std::filesystem: Elegantly Handling Files and Paths

Handling files and paths is a frequent task in any programming language. In C++, we used to rely on platform-specific APIs (such as CreateFile on Windows or open in POSIX) to accomplish this. This approach was not only cumbersome but also required consideration of cross-platform compatibility issues. The good news is that with the introduction … Read more