1CONTAINER_OF(9) Driver Basics CONTAINER_OF(9)
23
4
NAME
6container_of - cast a member of a structure out to the containing
7structure
8
SYNOPSIS
10container_of(ptr, type, member);
11
ARGUMENTS
13ptr
14the pointer to the member.
1516
type
17the type of the container struct this is embedded in.
1819
member
20the name of the member within the struct.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 CONTAINER_OF(9)