+/* --- @CONTAINER@ --- *
+ *
+ * Arguments: @type@ = the parent type, a structure or union
+ * @mem@ = the name of the member we have a pointer to
+ * @memty *p@ = pointer to @member@ within @type@
+ *
+ * Returns: The address of the containing @ty@ object.
+ */
+
+#define CONTAINER(type, member, p) \
+ (!sizeof((p) = &((type *)0)->mem) + \
+ (type *)((unsigned char *)(p) - offsetof(type, mem)))
+