PKUOS - Pintos
Pintos source browser for PKU Operating System course
Macros
packed.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PACKED   __attribute__ ((packed))
 The "packed" attribute, when applied to a structure, prevents GCC from inserting padding bytes between or after structure members. More...
 

Macro Definition Documentation

◆ PACKED

#define PACKED   __attribute__ ((packed))

The "packed" attribute, when applied to a structure, prevents GCC from inserting padding bytes between or after structure members.

It must be specified at the time of the structure's definition, normally just after the closing brace. lib/packed.h

Definition at line 10 of file packed.h.