util: New macro OBJECT_CONTAINING.
authorBen Pfaff <blp@nicira.com>
Mon, 19 Jul 2010 20:46:52 +0000 (13:46 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Oct 2010 17:25:10 +0000 (10:25 -0700)
commitadf7cfd851c3d9d6f1ad74653cbd2fecce8c3ba9
tree9fef3d694e27290b71dd93cc0f395a93a12ecf0f
parentca0f572cfe87f284018e14fa7f1de58fbaef4c87
util: New macro OBJECT_CONTAINING.

This macro is a variant on CONTAINER_OF that takes an object pointer
instead of a type name as its second argument.  In the following commit
this will simplify many users of CONTAINER_OF.
lib/util.h