C Library

Basics of C programming

Structure of C Program A C program is divided into different sections. There are six main sections to a basic…

Serial Port Programming: tcflush – TCIFLUSH,TCOFLUSH example

termios The termios module provides a POSIX-style interface for controlling the behavior of TTYs and other serial communication devices on…

Linux Device Driver example for dump_stack() to print the stack trace of module loading

One of the useful options in debugging is to print the call trace/stack trace. Linux kernel provides a function to…

oe-pkgdata-util utility in Yocto

oe-pkgdata-util is helpful in determining why a file is included in the root file system. For example, on the development…

Yocto recipetool tutorial

The recipetool allows for the easier creation of a base recipe based on the source code files. As long as…

pthread_yield example in c

One advantage to using threads is that they can execute for a very long time without preventing the execution of…

Serial Port Programming – Reading/Writing Status of Control Lines: DTR/RTS/CTS/DSR

tiocmget and tiocmset In the 2.4 and older kernels, there used to be a number of tty ioctl calls to…

StringCchCat Function example

StringCchCat is used to concatenate one string to another string. It is also important to remember that the Strsafe functions,…