This web content discusses the implementation of a Chunk type with a fixed size in C programming. It highlights the use of unions, which allow variables to hold objects of different types and sizes. The Chunk type is defined with a union containing a next pointer and an array of size CHUNK_SZ. The article explains that free chunks are linked in a list using the next pointer, while non-free chunks contain user data. The benefits of using a union to interpret the Chunk as a pointer depending on the context are explained. The content provides a detailed explanation of initializing the pool with free chunks linked together.
https://8dcc.github.io/programming/pool-allocator.html