1CONTAINER_OF(9)                  Driver Basics                 CONTAINER_OF(9)
2
3
4

NAME

6       container_of - cast a member of a structure out to the containing
7       structure
8

SYNOPSIS

10       container_of(ptr, type, member);
11

ARGUMENTS

13       ptr
14           the pointer to the member.
15
16       type
17           the type of the container struct this is embedded in.
18
19       member
20           the name of the member within the struct.
21
23Kernel Hackers Manual 3.10         June 2019                   CONTAINER_OF(9)
Impressum