founctions for C: offsetof, container_of