Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libmctp
/
41633fdd612e86b216c5c7a8e1f9c5bb108aa9ae
/
.
/
container_of.h
blob: a0e181a567993eb1c9f7361ef2e2706c002809d3 [
file
] [
log
] [
blame
]
#ifndef
_CONTAINER_OF_H
#define
_CONTAINER_OF_H
#ifndef
container_of
#define
container_of
(
ptr
,
type
,
member
)
\
(
type
*)((
char
*)(
ptr
)
-
(
char
*)&((
type
*)
0
)->
member
)
#endif
#endif