Understanding container_of and offsetof
You have the address of the member in the variable ptr. But you need the address of the container holding the member.
struct container {
struct member *ptr;
};
The Math
We have the address of t
blog.swebert.xyz1 min read