Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
libpldm
/
c51a4a12ecc1314c3b02e791203fcf58efac1614
/
.
/
src
/
transport
/
container-of.h
blob: 4c6ce1bdb26d973bb6e3212fa8b696a0c9d9b90c [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later */
#ifndef
CONTAINER_OF_H
#define
CONTAINER_OF_H
#ifndef
container_of
#define
container_of
(
ptr
,
type
,
member
)
\
(
type
*)((
char
*)(
ptr
)-
offsetof
(
type
,
member
))
#endif
#endif