The Hidden Gem of queue.h in Embedded Code!

The Hidden Gem of queue.h in Embedded Code!

Hello everyone, I am the Mixed Bag Master. queue.h is a header file in Linux and FreeBSD. FreeBSD: FreeBSD is a UNIX-like operating system. This is a very practical header file because it contains all macro definitions, making it usable not only in Linux/Embedded Linux projects but also conveniently in microcontroller projects. It implements the … Read more

Zephyr Kernel Data Structures – Singly Linked List

Zephyr Kernel Data Structures - Singly Linked List

Singly Linked List The Zephyr singly linked list is implemented in the following file: zephyr/include/zephyr/sys/slist.h. Zephyr stores singly linked list data in sys_slist_t (i.e., each list element stores a pointer to the next element, rather than the data of the previous element). /** @cond INTERNAL_HIDDEN */ struct _slist { sys_snode_t *head; sys_snode_t *tail; }; /** … Read more